Fix problems with required flags

This commit is contained in:
Andy Cedilnik
2003-01-03 20:03:35 -05:00
parent e720b84d6b
commit 668b3f3cea
4 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -8,8 +8,8 @@
MACRO(CHECK_FUNCTION_EXISTS FUNCTION VARIABLE)
IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
SET(MACRO_CHECK_FUNCTION_DEFINITIONS -DCHECK_FUNCTION_EXISTS=${FUNCTION}
${CMAKE_REQUIRED_FLAGS})
SET(MACRO_CHECK_FUNCTION_DEFINITIONS
"-DCHECK_FUNCTION_EXISTS=${FUNCTION} ${CMAKE_REQUIRED_FLAGS}")
MESSAGE(STATUS "Looking for ${FUNCTION}")
IF(CMAKE_REQUIRED_LIBRARIES)
SET(CHECK_FUNCTION_EXISTS_ADD_LIBRARIES