diff options
author | Jim Miller <millerjv@crd.ge.com> | 2001-06-25 17:34:09 (GMT) |
---|---|---|
committer | Jim Miller <millerjv@crd.ge.com> | 2001-06-25 17:34:09 (GMT) |
commit | d2c2cf3296eaaa746134f20655be6770232c79c3 (patch) | |
tree | b6d216ff76d6b68b12f068fb73c0dbb9e15b8198 /Source/cmBuildNameCommand.cxx | |
parent | c40e8c501749043c0fe3b4e04a0c574a17ee94d5 (diff) | |
download | CMake-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.cxx | 2 |
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; } |