From 50ee8b105d49fd7823bffb474484e2e40da6bee4 Mon Sep 17 00:00:00 2001 From: spycrab Date: Fri, 18 Oct 2019 16:00:15 +0200 Subject: [PATCH] Windows: Make builds more reproducible --- Source/CMakeLists.txt | 3 +++ Source/VSProps/Base.props | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 69ca995ecc..9fc3f14dc4 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -50,6 +50,9 @@ if (MSVC) add_subdirectory(PCH) add_definitions(/I${PCH_DIRECTORY}) add_definitions(/Yu${PCH_PATH}) + + # Don't include timestamps in binaries + add_link_options(/Brepro) endif() # These aren't actually needed for C11/C++11 diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props index 204c93a23f..bd156bafc6 100644 --- a/Source/VSProps/Base.props +++ b/Source/VSProps/Base.props @@ -162,7 +162,7 @@ enableCompatPatches - /NODEFAULTLIB:libcmt %(AdditionalOptions) + /NODEFAULTLIB:libcmt /Brepro %(AdditionalOptions) true