summaryrefslogtreecommitdiffstats
path: root/Utilities
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 /Utilities
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 'Utilities')
-rw-r--r--Utilities/cmcurl/CMake/CheckTypeSize.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmcurl/CMake/CheckTypeSize.cmake b/Utilities/cmcurl/CMake/CheckTypeSize.cmake
index e573d5b..e16c64d 100644
--- a/Utilities/cmcurl/CMake/CheckTypeSize.cmake
+++ b/Utilities/cmcurl/CMake/CheckTypeSize.cmake
@@ -8,6 +8,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(CHECK_TYPE_SIZE_TYPE "${TYPE}")
SET(MACRO_CHECK_TYPE_SIZE_FLAGS
@@ -50,5 +51,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)