Fixed deprecated dereference in checkfunctionexistsmath.cmake

master
ismagom 9 years ago
parent 355e1815f6
commit 4b493150a5

@ -26,7 +26,7 @@
#============================================================================= #=============================================================================
MACRO(CHECK_FUNCTION_EXISTS_MATH FUNCTION VARIABLE) MACRO(CHECK_FUNCTION_EXISTS_MATH FUNCTION VARIABLE)
IF("${VARIABLE}" MATCHES "^${VARIABLE}$") IF(${VARIABLE} MATCHES "^${VARIABLE}$")
SET(MACRO_CHECK_FUNCTION_DEFINITIONS SET(MACRO_CHECK_FUNCTION_DEFINITIONS
"-DCHECK_FUNCTION_EXISTS=${FUNCTION} ${CMAKE_REQUIRED_FLAGS}") "-DCHECK_FUNCTION_EXISTS=${FUNCTION} ${CMAKE_REQUIRED_FLAGS}")
MESSAGE(STATUS "Looking for ${FUNCTION}") MESSAGE(STATUS "Looking for ${FUNCTION}")
@ -63,5 +63,5 @@ MACRO(CHECK_FUNCTION_EXISTS_MATH FUNCTION VARIABLE)
"Determining if the function ${FUNCTION} exists failed with the following output:\n" "Determining if the function ${FUNCTION} exists failed with the following output:\n"
"${OUTPUT}\n\n") "${OUTPUT}\n\n")
ENDIF(${VARIABLE}) ENDIF(${VARIABLE})
ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$") ENDIF(${VARIABLE} MATCHES "^${VARIABLE}$")
ENDMACRO(CHECK_FUNCTION_EXISTS_MATH) ENDMACRO(CHECK_FUNCTION_EXISTS_MATH)

Loading…
Cancel
Save