1
0
Fork 0

Build Release with debug symbols.

This commit is contained in:
John Preston 2019-11-22 21:00:39 +03:00
parent 33612794c6
commit b303af63d7
2 changed files with 5 additions and 2 deletions

View file

@ -11,7 +11,9 @@ function(init_target_folder target_name folder_name)
endfunction()
function(init_target target_name) # init_target(my_target folder_name)
if (DEFINED ARGV1)
init_target_folder(${target_name} "${ARGV1}")
endif()
if (WIN32)
set_target_properties(${target_name} PROPERTIES
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

View file

@ -25,11 +25,12 @@ INTERFACE
/w14265 # class has virtual functions, but destructor is not virtual
/wd4068 # Disable "warning C4068: unknown pragma"
/Zc:wchar_t- # don't tread wchar_t as builtin type
/Zi
)
target_link_options(common_options
INTERFACE
$<$<CONFIG:Debug>:/NODEFAULTLIB:LIBCMT>
$<IF:$<CONFIG:Debug>,/NODEFAULTLIB:LIBCMT,/DEBUG;/OPT:REF>
)
target_link_libraries(common_options