From 0762f6cc5d04a9670004b9481010cfde1056144b Mon Sep 17 00:00:00 2001 From: "M. Petra Baranski" Date: Tue, 19 Feb 2019 02:31:16 +0100 Subject: [PATCH] appveyor - build this now.... --- CMakeLists.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 634dfc4..7236ac9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,10 +25,17 @@ file(GLOB_RECURSE MADDY_TESTS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/tests/maddy/*.cp # ------------------------------------------------------------------------------ -set( - CMAKE_CXX_FLAGS - "${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions -fsanitize=address -fno-omit-frame-pointer" -) +if (UNIX) + set( + CMAKE_CXX_FLAGS + "${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -Wall -Wpedantic -Wextra -Wno-ignored-qualifiers -fno-rtti -fno-exceptions -fsanitize=address -fno-omit-frame-pointer" + ) +else() + set( + CMAKE_CXX_FLAGS + "${CMAKE_CXX_FLAGS} -g -std=c++${MADDY_CPP_VERSION} -fno-rtti -fno-exceptions -fsanitize=address -fno-omit-frame-pointer" + ) +endif() # ------------------------------------------------------------------------------