diff options
author | Brad King <brad.king@kitware.com> | 2006-10-05 11:30:44 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-05 11:30:44 -0400 |
commit | 16b781360c5d1f0264047596711d11dcb5b768a9 (patch) | |
tree | 763918f02e239867ad166d42bac10a127875536c /Tests/Complex | |
parent | 1bdebd7da6b7d6704f0705fbaf9f892b558c0a26 (diff) | |
download | cmake-16b781360c5d1f0264047596711d11dcb5b768a9.tar.gz |
BUG: Run testSystemDir test only if -isystem flag is available.
Diffstat (limited to 'Tests/Complex')
-rw-r--r-- | Tests/Complex/Executable/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/Complex/Executable/CMakeLists.txt b/Tests/Complex/Executable/CMakeLists.txt index 01b4b20072..28db54ea5c 100644 --- a/Tests/Complex/Executable/CMakeLists.txt +++ b/Tests/Complex/Executable/CMakeLists.txt @@ -118,10 +118,10 @@ ADD_DEPENDENCIES(notInAllCustom notInAllExe) # ADD_SUBDIRECTORY(Temp) -IF(CMAKE_COMPILER_IS_GNUCXX) +IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_INCLUDE_SYSTEM_FLAG_CXX) ADD_EXECUTABLE(testSystemDir testSystemDir.cxx) SET_TARGET_PROPERTIES(testSystemDir PROPERTIES COMPILE_FLAGS "-Werror") -ENDIF(CMAKE_COMPILER_IS_GNUCXX) +ENDIF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_INCLUDE_SYSTEM_FLAG_CXX) # # Extra coverage.Not used. |