mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-30 14:12:02 +08:00
Specify more MSVC options for build types
This commit is contained in:
parent
ba3dee154a
commit
7cc190b22a
@ -51,7 +51,17 @@ execute_process(COMMAND git rev-parse --short HEAD OUTPUT_VARIABLE GIT_VERSION E
|
||||
if (MSVC)
|
||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_compile_options(-DEBUG -Od)
|
||||
if (SLIC3R_STATIC)
|
||||
add_compile_options(-MTd)
|
||||
else(SLIC3R_STATIC)
|
||||
add_compile_options(-MDd)
|
||||
endif(SLIC3R_STATIC)
|
||||
elseif (CMAKE_BUILD_TYPE MATCHES Release)
|
||||
if (SLIC3R_STATIC)
|
||||
add_compile_options(-MTd)
|
||||
else(SLIC3R_STATIC)
|
||||
add_compile_options(-MD)
|
||||
endif(SLIC3R_STATIC)
|
||||
elseif (CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)
|
||||
add_compile_options(-DEBUG -O2)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user