From 2ab79c97212609667e8f7c59bb5450963aa55bb7 Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Thu, 25 May 2023 15:14:07 +0300 Subject: [PATCH] CMakeLists.txt: generate PDB for release builds Signed-off-by: Lev Stipakov --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e7a09f1..73ebb54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,6 +158,12 @@ if(MSVC) RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:> LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:> ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/$<0:>) + + target_compile_options(${PROJECT_NAME} PRIVATE "$<$:/Zi>") + target_link_options(${PROJECT_NAME} PRIVATE + "$<$:/DEBUG:FULL>" + "$<$:/OPT:REF>" + "$<$:/OPT:ICF>") endif(MSVC) set_target_properties(${TEST_PLAP_EXE} PROPERTIES