BUG: Run testSystemDir test only if -isystem flag is available.
This commit is contained in:
parent
1bdebd7da6
commit
16b781360c
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue