1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-09 10:17:47 -04:00

/Zi not supported by linked. Need to use /DEBUG.

/DEBUG turns off /OPT:REF /OPT:ICF by default, so need to explictly switch them back on.
This commit is contained in:
Jon Beniston 2025-07-31 19:38:33 +01:00
parent f204c168f6
commit f3aa3f9013

View File

@ -34,7 +34,7 @@ else()
if(CMAKE_BUILD_TYPE MATCHES "Release")
# Include stripped debug info in release builds so crash handler can generate stack trace with function names
add_compile_options(/Zi)
add_link_options(/Zi /PDBSTRIPPED:$<TARGET_PROPERTY:RUNTIME_OUTPUT_DIRECTORY>/$<TARGET_PROPERTY:NAME>stripped.pdb)
add_link_options(/DEBUG /OPT:REF /OPT:ICF /PDBSTRIPPED:$<TARGET_PROPERTY:RUNTIME_OUTPUT_DIRECTORY>/$<TARGET_PROPERTY:NAME>stripped.pdb)
endif()
endif()