Changeset View
Changeset View
Standalone View
Standalone View
intern/guardedalloc/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. | ||||
| # Function malloc_stats is only available on GLIBC, so check that before | |||||
| # defining HAVE_MALLOC_STATS | |||||
| INCLUDE(CheckSymbolExists) | |||||
| CHECK_SYMBOL_EXISTS(malloc_stats "malloc.h" HAVE_MALLOC_STATS) | |||||
| if (HAVE_MALLOC_STATS) | |||||
| add_compile_definitions(HAVE_MALLOC_STATS) | |||||
campbellbarton: `add_compile_definitions` was added in 3.12, where Blender's minimum supported CMake is 3.10. | |||||
| endif() | |||||
| set(INC | set(INC | ||||
| . | . | ||||
| ../atomic | ../atomic | ||||
| ) | ) | ||||
| set(INC_SYS | set(INC_SYS | ||||
| ) | ) | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||
add_compile_definitions was added in 3.12, where Blender's minimum supported CMake is 3.10.
Use add_definitions instead.