From c07e94867f7c704f74c546f0c47946b24a8d3320 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 10 Feb 2003 21:56:32 -0500 Subject: [PATCH] clean up check for for scope test --- Modules/TestForANSIForScope.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/TestForANSIForScope.cmake b/Modules/TestForANSIForScope.cmake index 12b770c71..5326f86a7 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$") +