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 including it and using the it for | |||||
| # backtrace. | |||||
| if(NOT MSVC) | |||||
| include(CheckIncludeFiles) | |||||
| check_include_files("execinfo.h" HAVE_EXECINFO) | |||||
| if(HAVE_EXECINFO) | |||||
campbellbarton: By convention we've moved away from including content within the `endif`. | |||||
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. | |||||
| add_definitions(-DHAVE_EXECINFO_H) | |||||
| endif() | |||||
| endif() | |||||
| set(INC | set(INC | ||||
| . | . | ||||
| # ../blenkernel # don't add this back! | # ../blenkernel # don't add this back! | ||||
| ../makesdna | ../makesdna | ||||
| ../../../intern/atomic | ../../../intern/atomic | ||||
| ../../../intern/eigen | ../../../intern/eigen | ||||
| ../../../intern/guardedalloc | ../../../intern/guardedalloc | ||||
| ../../../extern/wcwidth | ../../../extern/wcwidth | ||||
| ▲ Show 20 Lines • Show All 492 Lines • Show Last 20 Lines | |||||
By convention we've moved away from including content within the endif.