summaryrefslogtreecommitdiffstats
path: root/Modules/TestForSTDNamespace.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-03-11 22:35:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-03-11 22:35:23 (GMT)
commit229355764bf95245757a7b469a92df31a8f3ca76 (patch)
tree409560a7b59f529bb0f3ed16fbb83ee3daf45b70 /Modules/TestForSTDNamespace.cmake
parent0f19623edd23e0cbb4ccfe61d33fc2e72e733958 (diff)
downloadCMake-229355764bf95245757a7b469a92df31a8f3ca76.zip
CMake-229355764bf95245757a7b469a92df31a8f3ca76.tar.gz
CMake-229355764bf95245757a7b469a92df31a8f3ca76.tar.bz2
BUG: fix test not to run every time
Diffstat (limited to 'Modules/TestForSTDNamespace.cmake')
-rw-r--r--Modules/TestForSTDNamespace.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/TestForSTDNamespace.cmake b/Modules/TestForSTDNamespace.cmake
index 89e559e..89dd413 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$")
+