From f3852eb0d2643a9b1d1358c3a89c0002b2cadb90 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 6 Jul 2019 22:21:13 -1000 Subject: [PATCH] Remove GXXDEBUG macro from atdna compilation --- atdna/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atdna/CMakeLists.txt b/atdna/CMakeLists.txt index 46d9c95..ea65ae0 100644 --- a/atdna/CMakeLists.txt +++ b/atdna/CMakeLists.txt @@ -4,6 +4,10 @@ if(NOT CMAKE_CROSSCOMPILING) +get_directory_property(ATDNA_DEFINES COMPILE_DEFINITIONS) +list(REMOVE_ITEM ATDNA_DEFINES _GLIBCXX_DEBUG=1) +set_directory_properties(PROPERTIES COMPILE_DEFINITIONS "${ATDNA_DEFINES}") + # Force this binary to Release flags (to make MSVC happy) if(MSVC) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_RELEASE}")