Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/CMakeLists.txt
| # SPDX-License-Identifier: GPL-2.0-or-later | # SPDX-License-Identifier: GPL-2.0-or-later | ||||
| # Copyright 2006 Blender Foundation. All rights reserved. | # Copyright 2006 Blender Foundation. All rights reserved. | ||||
| # Execinfo is not available on non-glibc systems (at least not on musl), so | |||||
| # check the presence of the header before using the it for backtrace | |||||
| INCLUDE(CheckIncludeFiles) | |||||
| CHECK_INCLUDE_FILES("execinfo.h" HAVE_EXECINFO) | |||||
| IF (HAVE_EXECINFO) | |||||
| add_compile_definitions(HAVE_EXECINFO_H) | |||||
| ENDIF(HAVE_EXECINFO) | |||||
campbellbarton: By convention we've moved away from including content within the `endif`. | |||||
campbellbartonUnsubmitted Done Inline ActionsBetter avoid unnecessary checks on windows, suggest to put this inside an if(NOT MSVC) check. campbellbarton: Better avoid unnecessary checks on windows, suggest to put this inside an `if(NOT MSVC)` check. | |||||
| set(INC | set(INC | ||||
| . | . | ||||
| # ../blenkernel # don't add this back! | # ../blenkernel # don't add this back! | ||||
By convention we've moved away from including content within the endif.