From 8639ca97e6f4bbdbf37b255cb7dc768ac7d51e0f Mon Sep 17 00:00:00 2001
From: Johannes Schickel
Date: Fri, 8 Oct 2010 08:07:31 +0000
Subject: TOOLS: Add RELEASE_BUILD to autogenerated MSVC project files.
This is only done for the release target and not the debug target.
svn-id: r53065
---
tools/create_msvc/create_msvc.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'tools/create_msvc')
diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp
index 1c395b01aa..f8c94e3c08 100644
--- a/tools/create_msvc/create_msvc.cpp
+++ b/tools/create_msvc/create_msvc.cpp
@@ -1715,7 +1715,7 @@ void VisualStudioProvider::createBuildProp(const BuildSetup &setup, bool isRelea
if (isRelease) {
properties << "\t\tEnableIntrinsicFunctions=\"true\"\n"
"\t\tWholeProgramOptimization=\"true\"\n"
- "\t\tPreprocessorDefinitions=\"WIN32\"\n"
+ "\t\tPreprocessorDefinitions=\"WIN32;RELEASE_BUILD\"\n"
"\t\tStringPooling=\"true\"\n"
"\t\tBufferSecurityCheck=\"false\"\n"
"\t\tDebugInformationFormat=\"0\"\n"
@@ -2111,7 +2111,7 @@ void MSBuildProvider::createBuildProp(const BuildSetup &setup, bool isRelease, b
if (isRelease) {
properties << "\t\t\ttrue\n"
"\t\t\ttrue\n"
- "\t\t\tWIN32;%(PreprocessorDefinitions)\n"
+ "\t\t\tWIN32;RELEASE_BUILD;%(PreprocessorDefinitions)\n"
"\t\t\ttrue\n"
"\t\t\tfalse\n"
"\t\t\t\n"
--
cgit v1.2.3