From d4f7132047b19cc5d073e27fb48197a76fcac306 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 31 Aug 2019 10:35:50 -1000 Subject: [PATCH] More permissive atdna warnings --- atdna/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/atdna/CMakeLists.txt b/atdna/CMakeLists.txt index c5bbdf7..e0f5321 100644 --- a/atdna/CMakeLists.txt +++ b/atdna/CMakeLists.txt @@ -130,11 +130,9 @@ set_source_files_properties(main.cpp PROPERTIES COMPILE_DEFINITIONS target_include_directories(atdna PRIVATE ${LLVM_INCLUDE_DIRS}) target_link_directories(atdna PRIVATE ${LLVM_LIBRARY_DIRS}) if(MSVC) -set_target_properties(atdna PROPERTIES - COMPILE_FLAGS "/GR-") + target_compile_options(atdna PRIVATE /GR-) else() -set_target_properties(atdna PROPERTIES - COMPILE_FLAGS "-fno-rtti -Wno-unused-parameter") + target_compile_options(atdna PRIVATE -fno-rtti -Wno-error) endif() # Define installs