summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'BuildTools/SCons/Tools')
-rw-r--r--BuildTools/SCons/Tools/BuildVersion.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BuildTools/SCons/Tools/BuildVersion.py b/BuildTools/SCons/Tools/BuildVersion.py
index 530ef8a..5edc79e 100644
--- a/BuildTools/SCons/Tools/BuildVersion.py
+++ b/BuildTools/SCons/Tools/BuildVersion.py
@@ -3,11 +3,11 @@ import SCons.Util
import Version
def generate(env) :
- def createBuildVersion(env, target, version = None) :
+ def createBuildVersion(env, target, project) :
buildVersion = """#pragma once
static const char* buildVersion = \"%(buildVersion)s\";\n
-""" % { "buildVersion" : Version.getBuildVersion(version) }
+""" % { "buildVersion" : Version.getBuildVersion(project) }
env.WriteVal(target, env.Value(buildVersion))
env.AddMethod(createBuildVersion, "BuildVersion")