diff options
author | John Wiegley <johnw@newartisans.com> | 2019-01-27 17:40:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-27 17:40:24 -0800 |
commit | 28c8f3bbd90d10ae52556c28460b421fd0c77168 (patch) | |
tree | 94e2970eb70d3af88e9ec5e2397086ad68484198 /CMakeLists.txt | |
parent | 33cbed3211ccab0f18e1ad7af3fea6af697df2e0 (diff) | |
parent | 1116472dce6523ce18a7a9ea9376aac8bed9f864 (diff) | |
download | fork-ledger-28c8f3bbd90d10ae52556c28460b421fd0c77168.tar.gz fork-ledger-28c8f3bbd90d10ae52556c28460b421fd0c77168.tar.bz2 fork-ledger-28c8f3bbd90d10ae52556c28460b421fd0c77168.zip |
Merge pull request #1751 from scfc/use-cmake-cxx-compiler-id-to-select-on-compiler
Use CMAKE_CXX_COMPILER_ID for conditions based on compiler
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c85a5157..c2c27097 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -296,8 +296,7 @@ configure_file( ${PROJECT_SOURCE_DIR}/src/system.hh.in ${PROJECT_BINARY_DIR}/system.hh) -if((CMAKE_CXX_COMPILER MATCHES "clang") OR - (CMAKE_CXX_COMPILER MATCHES "clang\\+\\+")) +if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-isystem ") endif() |