diff options
author | John Wiegley <johnw@newartisans.com> | 2016-11-13 15:16:32 -0800 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2016-11-13 15:16:32 -0800 |
commit | 121687a0265d4e874300de0d00d03834a9e20bcd (patch) | |
tree | 0bfc8e920f41117103627822d24bb5670be1de1a /CMakeLists.txt | |
parent | 1107f489fadb1ad34f0c01c6b6a1e47306557b54 (diff) | |
download | ledger-121687a0265d4e874300de0d00d03834a9e20bcd.tar.gz ledger-121687a0265d4e874300de0d00d03834a9e20bcd.tar.bz2 ledger-121687a0265d4e874300de0d00d03834a9e20bcd.zip |
Don't use -isystem with g++ anymore
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f5da6a04..e11aa44d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |