mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 21:21:10 -06:00
Build: Option to force generation of PDB file on MSVC Release build
This commit is contained in:
parent
267712eb32
commit
7be24414f3
2 changed files with 9 additions and 0 deletions
|
|
@ -497,6 +497,14 @@ if (WIN32)
|
|||
target_compile_definitions(XS PRIVATE -DNOGDI -DNOMINMAX -DHAS_BOOL)
|
||||
endif ()
|
||||
|
||||
# SLIC3R_MSVC_PDB
|
||||
if (MSVC AND SLIC3R_MSVC_PDB AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
||||
set_target_properties(XS PROPERTIES
|
||||
COMPILE_FLAGS "/Zi"
|
||||
LINK_FLAGS "/DEBUG /OPT:REF /OPT:ICF"
|
||||
)
|
||||
endif()
|
||||
|
||||
## Configuration flags
|
||||
if (SLIC3R_GUI)
|
||||
message("Slic3r will be built with GUI support")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue