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:
parent
f204c168f6
commit
f3aa3f9013
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user