summaryrefslogtreecommitdiffstats
path: root/Modules/CheckFunctionExists.cmake
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-25 14:08:08 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-25 14:08:08 (GMT)
commit5902279ebc28df950c3d076b4738449cd8d2e042 (patch)
tree78d34c1105189e266a627c8ffccd93e9055b07e9 /Modules/CheckFunctionExists.cmake
parent561a3da2043c3fbebd1f90c88842513625076aed (diff)
downloadCMake-5902279ebc28df950c3d076b4738449cd8d2e042.zip
CMake-5902279ebc28df950c3d076b4738449cd8d2e042.tar.gz
CMake-5902279ebc28df950c3d076b4738449cd8d2e042.tar.bz2
Fix modules for recent changes
Diffstat (limited to 'Modules/CheckFunctionExists.cmake')
-rw-r--r--Modules/CheckFunctionExists.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/CheckFunctionExists.cmake b/Modules/CheckFunctionExists.cmake
index 3640fd9..e5bb3b9 100644
--- a/Modules/CheckFunctionExists.cmake
+++ b/Modules/CheckFunctionExists.cmake
@@ -7,10 +7,11 @@
#
MACRO(CHECK_FUNCTION_EXISTS FUNCTION VARIABLE)
+ SET(MACRO_CHECK_FUNCTION_DEFINITIONS -DCHECK_FUNCTION_EXISTS=${FUNCTION})
TRY_COMPILE(${VARIABLE}
${PROJECT_BINARY_DIR}
${CMAKE_ROOT}/Modules/CheckFunctionExists.c
- COMPILE_DEFINITIONS -DCHECK_FUNCTION_EXISTS=${FUNCTION}
+ CMAKE_FLAGS -DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_FUNCTION_DEFINITIONS}
OUTPUT_VARIABLE OUTPUT)
IF(NOT ${VARIABLE})
WRITE_FILE(${PROJECT_BINARY_DIR}/CMakeError.log