diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-11 02:56:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-11 02:56:32 (GMT) |
commit | c07e94867f7c704f74c546f0c47946b24a8d3320 (patch) | |
tree | ed7d97a161c89c47a58f53ec3b503db79746c875 | |
parent | 2756c05b60ef7bc230606813b0155e0e7f1a38df (diff) | |
download | CMake-c07e94867f7c704f74c546f0c47946b24a8d3320.zip CMake-c07e94867f7c704f74c546f0c47946b24a8d3320.tar.gz CMake-c07e94867f7c704f74c546f0c47946b24a8d3320.tar.bz2 |
clean up check for for scope test
-rw-r--r-- | Modules/TestForANSIForScope.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/TestForANSIForScope.cmake b/Modules/TestForANSIForScope.cmake index 12b770c..5326f86 100644 --- a/Modules/TestForANSIForScope.cmake +++ b/Modules/TestForANSIForScope.cmake @@ -4,7 +4,7 @@ # CMAKE_NO_STD_NAMESPACE - defined accoreding to the results # -IF(NOT CMAKE_ANSI_FOR_SCOPE) +IF("CMAKE_ANSI_FOR_SCOPE" MATCHES "^CMAKE_ANSI_FOR_SCOPE$") MESSAGE(STATUS "Check for ANSI scope") TRY_COMPILE(CMAKE_ANSI_FOR_SCOPE ${CMAKE_BINARY_DIR} ${CMAKE_ROOT}/Modules/TestForAnsiForScope.cxx) @@ -17,7 +17,8 @@ IF(NOT CMAKE_ANSI_FOR_SCOPE) SET (CMAKE_NO_ANSI_FOR_SCOPE 1 CACHE INTERNAL "Does the compiler support ansi for scope.") ENDIF (CMAKE_ANSI_FOR_SCOPE) -ENDIF(NOT CMAKE_ANSI_FOR_SCOPE) +ENDIF("CMAKE_ANSI_FOR_SCOPE" MATCHES "^CMAKE_ANSI_FOR_SCOPE$") + |