diff options
author | David Schulz <david.schulz@qt.io> | 2019-12-19 09:52:24 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2019-12-19 13:02:29 +0000 |
commit | 8f9ff0c640b34d45a0ecba10b015ebf64d7bce45 (patch) | |
tree | 6038dabe3c53df6f05e2ee52ec439f544c1fce40 | |
parent | 2de52cffb18ece90883b3aa4821035ba476adfd7 (diff) |
CMake build: disable some warnings for build against llvmqds/v1.4.0
Add the same ignore warning flags to the compiler as in
clang_installation.pri
Change-Id: Ieb3f6ac861cba60b6c7fb3c74e4c9b46a62d22b9
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e29d793d7f..75ddf7ff9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,6 +98,12 @@ endif() install(TARGETS OptionalSvg EXPORT QtCreator) find_package(Clang COMPONENTS libclang QUIET) +# silence a lot of warnings from building against llvm +# this would better fit inside a central libclang detection/include cmake file, but since we do not +# have one put it temporary here +if(MSVC AND TARGET libclang) + target_compile_options(libclang INTERFACE /wd4100 /wd4141 /wd4146 /wd4244 /wd4267 /wd4291) +endif() find_package(LLVM QUIET) if (APPLE) |