summaryrefslogtreecommitdiffstats
path: root/Modules/CheckSizeOf.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-12-13 19:58:55 (GMT)
committerBrad King <brad.king@kitware.com>2002-12-13 19:58:55 (GMT)
commit7e824e83a9c97234f23640188c590201eeffea5d (patch)
tree6ead7ffa2b19307549baa6d5156153dbcc5deeaf /Modules/CheckSizeOf.cmake
parent858c6c9a02bc2f0a8ab1a9a6f4ab7f3c353ef049 (diff)
downloadCMake-7e824e83a9c97234f23640188c590201eeffea5d.zip
CMake-7e824e83a9c97234f23640188c590201eeffea5d.tar.gz
CMake-7e824e83a9c97234f23640188c590201eeffea5d.tar.bz2
ENH: Don't repeat check even if answer was no.
Diffstat (limited to 'Modules/CheckSizeOf.cmake')
-rw-r--r--Modules/CheckSizeOf.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckSizeOf.cmake b/Modules/CheckSizeOf.cmake
index d375135..65481ca 100644
--- a/Modules/CheckSizeOf.cmake
+++ b/Modules/CheckSizeOf.cmake
@@ -7,7 +7,7 @@
#
MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
- IF(NOT ${VARIABLE})
+ IF("${VARIABLE}" MATCHES "^${VARIABLE}$")
SET(MACRO_CHECK_TYPE_SIZE_FLAGS -DCHECK_SIZE_OF="${TYPE}")
IF(HAVE_SYS_TYPES_H)
SET(MACRO_CHECK_TYPE_SIZE_FLAGS
@@ -30,5 +30,5 @@ MACRO(CHECK_TYPE_SIZE TYPE VARIABLE)
"Determining size of ${TYPE} failed with the following output:\n${OUTPUT}\n"
APPEND)
ENDIF(HAVE_${VARIABLE})
- ENDIF(NOT ${VARIABLE})
+ ENDIF("${VARIABLE}" MATCHES "^${VARIABLE}$")
ENDMACRO(CHECK_TYPE_SIZE)