Browse Source

CMakeLists.txt: generate PDB for release builds

Signed-off-by: Lev Stipakov <lev@openvpn.net>
pull/612/merge
Lev Stipakov 2 years ago committed by Lev Stipakov
parent
commit
2ab79c9721
  1. 6
      CMakeLists.txt

6
CMakeLists.txt

@ -158,6 +158,12 @@ if(MSVC)
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:> RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:>
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:> LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:>
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:>) ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:>)
target_compile_options(${PROJECT_NAME} PRIVATE "$<$<CONFIG:Release>:/Zi>")
target_link_options(${PROJECT_NAME} PRIVATE
"$<$<CONFIG:Release>:/DEBUG:FULL>"
"$<$<CONFIG:Release>:/OPT:REF>"
"$<$<CONFIG:Release>:/OPT:ICF>")
endif(MSVC) endif(MSVC)
set_target_properties(${TEST_PLAP_EXE} PROPERTIES set_target_properties(${TEST_PLAP_EXE} PROPERTIES

Loading…
Cancel
Save