summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-03-11 17:35:23 -0500
committerBill Hoffman <bill.hoffman@kitware.com>2003-03-11 17:35:23 -0500
commit229355764bf95245757a7b469a92df31a8f3ca76 (patch)
tree409560a7b59f529bb0f3ed16fbb83ee3daf45b70 /Modules
parent0f19623edd23e0cbb4ccfe61d33fc2e72e733958 (diff)
downloadcmake-229355764bf95245757a7b469a92df31a8f3ca76.tar.gz
BUG: fix test not to run every time
Diffstat (limited to 'Modules')
-rw-r--r--Modules/TestForSTDNamespace.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/TestForSTDNamespace.cmake b/Modules/TestForSTDNamespace.cmake
index 89e559ef5c..89dd413f94 100644
--- a/Modules/TestForSTDNamespace.cmake
+++ b/Modules/TestForSTDNamespace.cmake
@@ -3,8 +3,7 @@
#
# CMAKE_NO_STD_NAMESPACE - defined accoreding to the results
#
-
-IF(NOT CMAKE_STD_NAMESPACE)
+IF("CMAKE_STD_NAMESPACE" MATCHES "^CMAKE_STD_NAMESPACE$")
MESSAGE(STATUS "Check for STD namespace")
TRY_COMPILE(CMAKE_STD_NAMESPACE ${CMAKE_BINARY_DIR}
${CMAKE_ROOT}/Modules/TestForSTDNamespace.cxx)
@@ -17,7 +16,8 @@ IF(NOT CMAKE_STD_NAMESPACE)
SET (CMAKE_NO_STD_NAMESPACE 1 CACHE INTERNAL
"Does the compiler support std::.")
ENDIF (CMAKE_STD_NAMESPACE)
-ENDIF(NOT CMAKE_STD_NAMESPACE)
+ENDIF("CMAKE_STD_NAMESPACE" MATCHES "^CMAKE_STD_NAMESPACE$")
+