BUG: Run testSystemDir test only if -isystem flag is available.

This commit is contained in:
Brad King 2006-10-05 11:30:44 -04:00
parent 1bdebd7da6
commit 16b781360c
3 changed files with 6 additions and 6 deletions

View File

@ -118,10 +118,10 @@ ADD_DEPENDENCIES(notInAllCustom notInAllExe)
# #
ADD_SUBDIRECTORY(Temp) ADD_SUBDIRECTORY(Temp)
IF(CMAKE_COMPILER_IS_GNUCXX) IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
ADD_EXECUTABLE(testSystemDir testSystemDir.cxx) ADD_EXECUTABLE(testSystemDir testSystemDir.cxx)
SET_TARGET_PROPERTIES(testSystemDir PROPERTIES COMPILE_FLAGS "-Werror") 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. # Extra coverage.Not used.

View File

@ -118,10 +118,10 @@ ADD_DEPENDENCIES(notInAllCustom notInAllExe)
# #
ADD_SUBDIRECTORY(Temp) ADD_SUBDIRECTORY(Temp)
IF(CMAKE_COMPILER_IS_GNUCXX) IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
ADD_EXECUTABLE(testSystemDir testSystemDir.cxx) ADD_EXECUTABLE(testSystemDir testSystemDir.cxx)
SET_TARGET_PROPERTIES(testSystemDir PROPERTIES COMPILE_FLAGS "-Werror") 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. # Extra coverage.Not used.

View File

@ -118,10 +118,10 @@ ADD_DEPENDENCIES(notInAllCustom notInAllExe)
# #
ADD_SUBDIRECTORY(Temp) ADD_SUBDIRECTORY(Temp)
IF(CMAKE_COMPILER_IS_GNUCXX) IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
ADD_EXECUTABLE(testSystemDir testSystemDir.cxx) ADD_EXECUTABLE(testSystemDir testSystemDir.cxx)
SET_TARGET_PROPERTIES(testSystemDir PROPERTIES COMPILE_FLAGS "-Werror") 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. # Extra coverage.Not used.