Don't use -isystem with g++ anymore

This commit is contained in:
John Wiegley 2016-11-13 15:16:32 -08:00
parent 1107f489fa
commit 121687a026
No known key found for this signature in database
GPG key ID: C144D8F4F19FE630
2 changed files with 3 additions and 4 deletions

View file

@ -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()

View file

@ -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)