diff options
author | Brad King <brad.king@kitware.com> | 2006-10-05 15:30:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-05 15:30:44 (GMT) |
commit | 16b781360c5d1f0264047596711d11dcb5b768a9 (patch) | |
tree | 763918f02e239867ad166d42bac10a127875536c /Tests/ComplexOneConfig | |
parent | 1bdebd7da6b7d6704f0705fbaf9f892b558c0a26 (diff) | |
download | CMake-16b781360c5d1f0264047596711d11dcb5b768a9.zip CMake-16b781360c5d1f0264047596711d11dcb5b768a9.tar.gz CMake-16b781360c5d1f0264047596711d11dcb5b768a9.tar.bz2 |
BUG: Run testSystemDir test only if -isystem flag is available.
Diffstat (limited to 'Tests/ComplexOneConfig')
-rw-r--r-- | Tests/ComplexOneConfig/Executable/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/ComplexOneConfig/Executable/CMakeLists.txt b/Tests/ComplexOneConfig/Executable/CMakeLists.txt index 01b4b20..28db54e 100644 --- a/Tests/ComplexOneConfig/Executable/CMakeLists.txt +++ b/Tests/ComplexOneConfig/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. |