BUG: fix test not to run every time

This commit is contained in:
Bill Hoffman 2003-03-11 17:35:23 -05:00
parent 0f19623edd
commit 229355764b
1 changed files with 3 additions and 3 deletions

View File

@ -3,8 +3,7 @@
# #
# CMAKE_NO_STD_NAMESPACE - defined accoreding to the results # CMAKE_NO_STD_NAMESPACE - defined accoreding to the results
# #
IF("CMAKE_STD_NAMESPACE" MATCHES "^CMAKE_STD_NAMESPACE$")
IF(NOT CMAKE_STD_NAMESPACE)
MESSAGE(STATUS "Check for STD namespace") MESSAGE(STATUS "Check for STD namespace")
TRY_COMPILE(CMAKE_STD_NAMESPACE ${CMAKE_BINARY_DIR} TRY_COMPILE(CMAKE_STD_NAMESPACE ${CMAKE_BINARY_DIR}
${CMAKE_ROOT}/Modules/TestForSTDNamespace.cxx) ${CMAKE_ROOT}/Modules/TestForSTDNamespace.cxx)
@ -17,7 +16,8 @@ IF(NOT CMAKE_STD_NAMESPACE)
SET (CMAKE_NO_STD_NAMESPACE 1 CACHE INTERNAL SET (CMAKE_NO_STD_NAMESPACE 1 CACHE INTERNAL
"Does the compiler support std::.") "Does the compiler support std::.")
ENDIF (CMAKE_STD_NAMESPACE) ENDIF (CMAKE_STD_NAMESPACE)
ENDIF(NOT CMAKE_STD_NAMESPACE) ENDIF("CMAKE_STD_NAMESPACE" MATCHES "^CMAKE_STD_NAMESPACE$")