From 5456e9a65c2e7a29f61d17d19906aa9616678ca6 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Thu, 30 Apr 2020 20:35:32 +0200 Subject: Fix for overruling flags that did work with the Visual Studio compiler --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e512ed5..780352a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -285,7 +285,10 @@ add_library(_doxygen STATIC # LLVM/clang headers give a lot of warnings with -Wshadow and -Wcast-align so we disable them for # the one file that includes them + +if (NOT MSVC) set_source_files_properties(clangparser.cpp PROPERTIES COMPILE_FLAGS "-Wno-shadow -Wno-cast-align") +endif() ##foreach(lex_file ${LEX_FILES}) ##add_library(_doxygen STATIC ${GENERATED_SRC}/${lex_file}.l.h) -- cgit v0.12