summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-03-06 15:32:43 (GMT)
committerBrad King <brad.king@kitware.com>2003-03-06 15:32:43 (GMT)
commit98d10a42d3a07b33d0d120e549e0ab9822d3d91c (patch)
tree886bc4833e5b200b680635e36516d0b284fc549b /Modules
parent32ad8ec43e7596b91cd2c9e65c874a4ad49e1d8b (diff)
downloadCMake-98d10a42d3a07b33d0d120e549e0ab9822d3d91c.zip
CMake-98d10a42d3a07b33d0d120e549e0ab9822d3d91c.tar.gz
CMake-98d10a42d3a07b33d0d120e549e0ab9822d3d91c.tar.bz2
BUG: Should test HAVE_<VARIABLE> before repeating test, not just whether <VARIABLE> is set.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckTypeSize.cmake4
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)