diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2017-07-30 18:34:39 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2017-07-30 18:34:39 +0200 |
commit | 6ceb9b71526e3a51b71b79e26e05cb14b32472af (patch) | |
tree | 9810e3c199b437050bf7feaf993bfe08b4a75fa1 /CMakeLists.txt | |
parent | e6f938e0e9fd11003bd4ed7a6993951b064a8dfa (diff) |
Fixes to AppVeyor and Travis scripts
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 595c6b89..049662b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,8 +101,10 @@ else() set(FLAGS "${FLAGS} -Wno-missing-prototypes -Wno-float-equal -Wno-switch-enum -Wno-switch") set(FLAGS "${FLAGS} -Wno-exit-time-destructors -Wno-global-constructors -Wno-missing-noreturn") set(FLAGS "${FLAGS} -Wno-deprecated-declarations") - if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 3.9.0) - set(FLAGS "${FLAGS} -Wno-undefined-var-template") + if(NOT CMAKE_CXX_COMPILER_ID MATCHES AppleClang) + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 3.9.0) + set(FLAGS "${FLAGS} -Wno-undefined-var-template") + endif() endif() endif() endif() |