mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Merge pull request #2383 from mcfi/patch-2
Pass /RELEASE to MSVC linker
This commit is contained in:
commit
164039a47c
|
@ -425,6 +425,14 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||||
include(${PROJECT_SOURCE_DIR}/cmake/msvc_legacy_quirks.cmake)
|
include(${PROJECT_SOURCE_DIR}/cmake/msvc_legacy_quirks.cmake)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Pass /RELEASE to the linker so that checksums in PE files are calculated.
|
||||||
|
################################################################################
|
||||||
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||||
|
string(APPEND CMAKE_EXE_LINKER_FLAGS " /RELEASE")
|
||||||
|
string(APPEND CMAKE_SHARED_LINKER_FLAGS " /RELEASE")
|
||||||
|
endif()
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Report default CMake flags
|
# Report default CMake flags
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in a new issue