diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-11 03:00:40 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-02-11 03:00:40 (GMT) |
commit | cdf6e1dc2101fb251c7ebbf6fe3826fc55f2c28e (patch) | |
tree | 23fdc2a20468129e082db94e33c3482212e40921 /Tests/TryCompile/CMakeLists.txt | |
parent | c07e94867f7c704f74c546f0c47946b24a8d3320 (diff) | |
download | CMake-cdf6e1dc2101fb251c7ebbf6fe3826fc55f2c28e.zip CMake-cdf6e1dc2101fb251c7ebbf6fe3826fc55f2c28e.tar.gz CMake-cdf6e1dc2101fb251c7ebbf6fe3826fc55f2c28e.tar.bz2 |
ENH: add more testing for ansi for scopes
Diffstat (limited to 'Tests/TryCompile/CMakeLists.txt')
-rw-r--r-- | Tests/TryCompile/CMakeLists.txt | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/Tests/TryCompile/CMakeLists.txt b/Tests/TryCompile/CMakeLists.txt index 55991e7..eed9c19 100644 --- a/Tests/TryCompile/CMakeLists.txt +++ b/Tests/TryCompile/CMakeLists.txt @@ -49,6 +49,31 @@ IF(NOT SHOULD_FAIL) ELSE(NOT SHOULD_FAIL) MESSAGE("Test failed") ENDIF(NOT SHOULD_FAIL) +TRY_COMPILE(CMAKE_ANSI_FOR_SCOPE ${TryCompile_BINARY_DIR}/CMakeTmp + ${CMAKE_ROOT}/Modules/TestForAnsiForScope.cxx OUTPUT_VARIABLE OUT) +IF (CMAKE_ANSI_FOR_SCOPE) + MESSAGE("Compiler supports ansi for") +ELSE(CMAKE_ANSI_FOR_SCOPE) + MESSAGE("Compiler does not support ansi for scope") +ENDIF(CMAKE_ANSI_FOR_SCOPE) +MESSAGE("output from TRY_COMPILE ${OUT} ") + +TRY_COMPILE(CMAKE_ANSI_FOR_SCOPE ${TryCompile_BINARY_DIR}/CMakeTmp + ${CMAKE_ROOT}/Modules/TestForAnsiForScope.cxx OUTPUT_VARIABLE OUT) +IF (CMAKE_ANSI_FOR_SCOPE) + MESSAGE("Compiler supports ansi for") +ELSE(CMAKE_ANSI_FOR_SCOPE) + MESSAGE("Compiler does not support ansi for scope") +ENDIF(CMAKE_ANSI_FOR_SCOPE) +MESSAGE("output from TRY_COMPILE ${OUT} ") + + +MESSAGE("use the module now") +INCLUDE(${CMAKE_ROOT}/Modules/TestForANSIForScope.cmake) +IF (CMAKE_ANSI_FOR_SCOPE) + MESSAGE("Compiler supports ansi for") +ELSE(CMAKE_ANSI_FOR_SCOPE) + MESSAGE("Compiler does not support ansi for scope") +ENDIF(CMAKE_ANSI_FOR_SCOPE) - ADD_EXECUTABLE(TryCompile pass.c) |