Specify more MSVC options for build types

This commit is contained in:
Joseph Lenox 2018-08-08 00:17:47 -05:00
parent ba3dee154a
commit 7cc190b22a

View File

@ -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()