cmake: Make release builds more reproducible

Use an undocumented MSVC linker flag to not emit tool version info for
Release and MinSizeRel builds.
This commit is contained in:
Ryan Foster
2026-02-20 15:50:14 -05:00
parent 3786fa3d3e
commit f9e88c1696
+1
View File
@@ -92,6 +92,7 @@ add_link_options(
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/LTCG>
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/OPT:REF>
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/OPT:ICF>
$<$<OR:$<CONFIG:Release>,$<CONFIG:MinSizeRel>>:/EMITTOOLVERSIONINFO:NO>
/DEBUG
/Brepro
)