summaryrefslogtreecommitdiffstats
path: root/Source/cmBuildNameCommand.cxx
diff options
context:
space:
mode:
authorJim Miller <millerjv@crd.ge.com>2001-06-25 17:34:09 (GMT)
committerJim Miller <millerjv@crd.ge.com>2001-06-25 17:34:09 (GMT)
commitd2c2cf3296eaaa746134f20655be6770232c79c3 (patch)
treeb6d216ff76d6b68b12f068fb73c0dbb9e15b8198 /Source/cmBuildNameCommand.cxx
parentc40e8c501749043c0fe3b4e04a0c574a17ee94d5 (diff)
downloadCMake-d2c2cf3296eaaa746134f20655be6770232c79c3.zip
CMake-d2c2cf3296eaaa746134f20655be6770232c79c3.tar.gz
CMake-d2c2cf3296eaaa746134f20655be6770232c79c3.tar.bz2
FIX: added AddDefinition() to store site name and build name in makefile. Also stripped
white space from the result of hostname.
Diffstat (limited to 'Source/cmBuildNameCommand.cxx')
-rw-r--r--Source/cmBuildNameCommand.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx
index 53f5b1d..f5f0658 100644
--- a/Source/cmBuildNameCommand.cxx
+++ b/Source/cmBuildNameCommand.cxx
@@ -86,6 +86,8 @@ bool cmBuildNameCommand::InitialPass(std::vector<std::string>& args)
buildname.c_str(),
"Name of build.",
cmCacheManager::STRING);
+
+ m_Makefile->AddDefinition("BUILDNAME", buildname.c_str());
return true;
}