Save separate debug symbols on Linux

This commit is contained in:
Dan Paulat 2023-06-05 22:22:35 -05:00
parent a21377ce6c
commit c29f335d9a
4 changed files with 35 additions and 0 deletions

View file

@ -401,6 +401,9 @@ if (MSVC)
target_link_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:/DEBUG>")
target_link_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:/OPT:REF>")
target_link_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:/OPT:ICF>")
else()
target_compile_options(scwx-qt PRIVATE "$<$<CONFIG:Release>:-g>")
target_compile_options(supercell-wx PRIVATE "$<$<CONFIG:Release>:-g>")
endif()
target_link_libraries(scwx-qt PUBLIC Qt${QT_VERSION_MAJOR}::Widgets