summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-05-17 19:17:45 (GMT)
committerBrad King <brad.king@kitware.com>2007-05-17 19:17:45 (GMT)
commit58debfd6bdd5d950b500bb9315241723ff019a11 (patch)
treef6abccdfb4cd70d94cbce07277cb04025f0f869e /Source
parentb8928b0c8e2d6e649cf52d28021cf349194f2485 (diff)
downloadCMake-58debfd6bdd5d950b500bb9315241723ff019a11.zip
CMake-58debfd6bdd5d950b500bb9315241723ff019a11.tar.gz
CMake-58debfd6bdd5d950b500bb9315241723ff019a11.tar.bz2
ENH: Use IF(NOT DEFINED) check to short-circuit size test.
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/Curl/CMake/CheckTypeSize.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/Curl/CMake/CheckTypeSize.cmake b/Source/CTest/Curl/CMake/CheckTypeSize.cmake
index dd023a6..0f7ad52 100644
--- a/Source/CTest/Curl/CMake/CheckTypeSize.cmake
+++ b/Source/CTest/Curl/CMake/CheckTypeSize.cmake
@@ -9,6 +9,7 @@
MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS 1)
+ IF(NOT DEFINED ${VARIABLE})
IF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$")
SET(MACRO_CHECK_TYPE_SIZE_FLAGS
"-DCHECK_TYPE_SIZE_TYPE=\"${TYPE}\" ${CMAKE_REQUIRED_FLAGS}")
@@ -47,5 +48,6 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
"Determining size of ${TYPE} failed with the following output:\n${OUTPUT}\nCheckTypeSize.c:\n${CHECK_TYPE_SIZE_FILE_CONTENT}\n\n")
ENDIF(HAVE_${VARIABLE})
ENDIF("HAVE_${VARIABLE}" MATCHES "^HAVE_${VARIABLE}$")
+ ENDIF(NOT DEFINED ${VARIABLE})
SET(CMAKE_ALLOW_UNKNOWN_VARIABLE_READ_ACCESS )
ENDMACRO(CHECK_TYPE_SIZE)