CMake: Fix Windows build

This commit is contained in:
Vladimir Golovnev (Glassez) 2019-08-06 21:50:39 +03:00
commit 6bfa4370b7
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
3 changed files with 13 additions and 17 deletions

View file

@ -1,12 +1,3 @@
if (STACKTRACE)
if (NOT "${WINXXBITS}" STREQUAL "Win64")
# i686 arch requires frame pointer preservation
add_compile_options(-Oy-)
endif (NOT "${WINXXBITS}" STREQUAL "Win64")
add_compile_options(-Zi)
link_libraries(dbghelp -DEBUG)
endif (STACKTRACE)
include(MacroConfigureMSVCRuntime)
set(MSVC_RUNTIME "dynamic")
configure_msvc_runtime()