Skip to content

Commit f9e88c1

Browse files
committed
cmake: Make release builds more reproducible
Use an undocumented MSVC linker flag to not emit tool version info for Release and MinSizeRel builds.
1 parent 3786fa3 commit f9e88c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/windows/compilerconfig.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ add_link_options(
9292
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/LTCG>
9393
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/OPT:REF>
9494
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/OPT:ICF>
95+
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/EMITTOOLVERSIONINFO:NO>
9596
/DEBUG
9697
/Brepro
9798
)

0 commit comments

Comments
 (0)