Don't use -isystem with g++ anymore
This commit is contained in:
parent
1107f489fa
commit
121687a026
2 changed files with 3 additions and 4 deletions
|
|
@ -298,9 +298,8 @@ configure_file(
|
|||
${PROJECT_SOURCE_DIR}/src/system.hh.in
|
||||
${PROJECT_BINARY_DIR}/system.hh)
|
||||
|
||||
if (CMAKE_CXX_COMPILER MATCHES "clang")
|
||||
set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
|
||||
elseif(CMAKE_CXX_COMPILER MATCHES "g\\+\\+")
|
||||
if((CMAKE_CXX_COMPILER MATCHES "clang") OR
|
||||
(CMAKE_CXX_COMPILER MATCHES "clang++"))
|
||||
set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
|
||||
get_directory_property(DIRINC INCLUDE_DIRECTORIES)
|
||||
foreach(_inc ${DIRINC})
|
||||
list(APPEND _args "-isystem " ${_inc})
|
||||
list(APPEND _args "-I" ${_inc})
|
||||
endforeach(_inc ${DIRINC})
|
||||
|
||||
separate_arguments(_args)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue