diff options
-rw-r--r-- | Modules/CheckTypeSize.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckTypeSize.cmake b/Modules/CheckTypeSize.cmake index 3f73fee..78234e4 100644 --- a/Modules/CheckTypeSize.cmake +++ b/Modules/CheckTypeSize.cmake @@ -8,7 +8,7 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE) SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS 1) - IF("${VARIABLE}" MATCHES "^${VARIABLE}$") + IF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$") SET(MACRO_CHECK_TYPE_SIZE_FLAGS "-DCHECK_TYPE_SIZE_TYPE=\"${TYPE}\" ${CMAKE_REQUIRED_FLAGS}") IF(HAVE_SYS_TYPES_H) @@ -37,6 +37,6 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE) "Determining size of ${TYPE} failed with the following output:\n${OUTPUT}\n" APPEND) ENDIF(HAVE_${VARIABLE}) - ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$") + ENDIF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$") SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS ) ENDMACRO(CHECK_TYPE_SIZE) |