From f751be98ed4f99811a69caf376bdfc3d09dec3fd Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 16 Jan 2018 23:17:55 +0000 Subject: [PATCH] Fix version project building on 32-bit --- renderdoc/api/replay/version.cpp | 6 +++++- renderdoc/renderdoc_version.vcxproj | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/renderdoc/api/replay/version.cpp b/renderdoc/api/replay/version.cpp index 70de3779a..6ca720819 100644 --- a/renderdoc/api/replay/version.cpp +++ b/renderdoc/api/replay/version.cpp @@ -38,4 +38,8 @@ // Note the hash should be precisely 40 characters, as comes from git rev-parse. extern "C" const char GitVersionHash[41] = GIT_COMMIT_HASH; -#pragma comment(linker, "/include:GitVersionHash") \ No newline at end of file +#if defined(WIN64) +#pragma comment(linker, "/include:GitVersionHash") +#elif defined(WIN32) +#pragma comment(linker, "/include:_GitVersionHash") +#endif \ No newline at end of file diff --git a/renderdoc/renderdoc_version.vcxproj b/renderdoc/renderdoc_version.vcxproj index 5f7502423..a883e71eb 100644 --- a/renderdoc/renderdoc_version.vcxproj +++ b/renderdoc/renderdoc_version.vcxproj @@ -36,6 +36,16 @@ + + $(SolutionDir)$(Platform)\$(Configuration)\ + $(ExecutablePath) + $(SolutionDir)\breakpad;$(IncludePath) + $(LibraryPath) + $(ExcludePath) + + + $(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\ + Level3 @@ -45,6 +55,11 @@ Windows + + + WIN64;%(PreprocessorDefinitions) + +