BUG: fix test not to run every time
This commit is contained in:
parent
0f19623edd
commit
229355764b
|
@ -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$")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue