diff options
author | bubnikv <bubnikv@gmail.com> | 2019-01-30 17:27:11 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-01-30 17:27:11 +0300 |
commit | eec289961ac81c0d631be132360acd681f01f379 (patch) | |
tree | f69fc44b33aa415e9a82db71dcb132f1caad856a /CMakeLists.txt | |
parent | 5a28693ff42589084c467f4991882fac6504204c (diff) |
Removed Microsoft specific _DEBUG flag from the Unix systems.
Made condional compilation of assert code based on #ifndef NDEBUG
instead of #ifdef _DEBUG to compile on Unix systems.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e42e24e9..90ebd1e5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,9 +86,8 @@ set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) if(NOT WIN32) - # Add DEBUG flags for the debug builds in a way the Visual Studio adds these flags. + # Add DEBUG flags to debug builds. add_compile_options("$<$<CONFIG:DEBUG>:-DDEBUG>") - add_compile_options("$<$<CONFIG:DEBUG>:-D_DEBUG>") endif() # To be able to link libslic3r with the Perl XS module. |