diff options
-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) |