diff options
author | Teo Mrnjavac <teo@kde.org> | 2016-03-29 19:41:37 +0300 |
---|---|---|
committer | Teo Mrnjavac <teo@kde.org> | 2016-03-29 19:41:37 +0300 |
commit | 61dc3963c2b59894e7d3f3bd758c43b59665054a (patch) | |
tree | 9dced5ddf141aff4dffff03a69f190f7c63acb5a | |
parent | 80905e552ad547e08e0c95fe6234ac2b1ee4ad85 (diff) |
Fix build on Linux+Clang.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c0bbd0a..9ec81a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,8 @@ project(libcrashreporter-qt) cmake_minimum_required(VERSION 2.8.11) cmake_policy(SET CMP0020 OLD) -if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_FLAGS) +if((CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_FLAGS) OR + (UNIX AND NOT APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")) # Breakpad uses GNU compiler extensions like typeof. # Luckily these features are not used on OSX, so we can build the # crashreporter there with the normal C++11 standard. @@ -12,4 +13,3 @@ endif() add_subdirectory(3rdparty) add_subdirectory(src) - |