mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	Merge pull request #2383 from mcfi/patch-2
Pass /RELEASE to MSVC linker
This commit is contained in:
		
						commit
						164039a47c
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -425,6 +425,14 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
 | 
			
		|||
  include(${PROJECT_SOURCE_DIR}/cmake/msvc_legacy_quirks.cmake)
 | 
			
		||||
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
 | 
			
		||||
################################################################################
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue