From 4b493150a5018af0bc6e37bf25c739b2b3b6f312 Mon Sep 17 00:00:00 2001 From: ismagom Date: Wed, 28 Oct 2015 09:58:34 +0100 Subject: [PATCH] Fixed deprecated dereference in checkfunctionexistsmath.cmake --- cmake/modules/CheckFunctionExistsMath.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/CheckFunctionExistsMath.cmake b/cmake/modules/CheckFunctionExistsMath.cmake index a05b431de..de276ef3f 100644 --- a/cmake/modules/CheckFunctionExistsMath.cmake +++ b/cmake/modules/CheckFunctionExistsMath.cmake @@ -26,7 +26,7 @@ #============================================================================= MACRO(CHECK_FUNCTION_EXISTS_MATH FUNCTION VARIABLE) - IF("${VARIABLE}" MATCHES "^${VARIABLE}$") + IF(${VARIABLE} MATCHES "^${VARIABLE}$") SET(MACRO_CHECK_FUNCTION_DEFINITIONS "-DCHECK_FUNCTION_EXISTS=${FUNCTION} ${CMAKE_REQUIRED_FLAGS}") 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" "${OUTPUT}\n\n") ENDIF(${VARIABLE}) - ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$") + ENDIF(${VARIABLE} MATCHES "^${VARIABLE}$") ENDMACRO(CHECK_FUNCTION_EXISTS_MATH)