Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-01-30 17:27:11 +0300
committerbubnikv <bubnikv@gmail.com>2019-01-30 17:27:11 +0300
commiteec289961ac81c0d631be132360acd681f01f379 (patch)
treef69fc44b33aa415e9a82db71dcb132f1caad856a /CMakeLists.txt
parent5a28693ff42589084c467f4991882fac6504204c (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.txt3
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.