diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-15 17:56:07 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-10-15 17:56:07 (GMT) |
commit | 1777bb502a3c8dbcead54b11fe403e13fe9c225c (patch) | |
tree | e85da2c575bc1e88254287b220e4e236065f3285 /Source/cmProjectCommand.cxx | |
parent | e099dccf4b3772c10c076ec1044dae01da510d28 (diff) | |
download | CMake-1777bb502a3c8dbcead54b11fe403e13fe9c225c.zip CMake-1777bb502a3c8dbcead54b11fe403e13fe9c225c.tar.gz CMake-1777bb502a3c8dbcead54b11fe403e13fe9c225c.tar.bz2 |
BUG: 4244, add a --build option to cmake that can build projects configured by CMake
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r-- | Source/cmProjectCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx index 1823b5f..870d48e 100644 --- a/Source/cmProjectCommand.cxx +++ b/Source/cmProjectCommand.cxx @@ -57,6 +57,10 @@ bool cmProjectCommand if(!this->Makefile->GetDefinition("CMAKE_PROJECT_NAME")) { this->Makefile->AddDefinition("CMAKE_PROJECT_NAME", args[0].c_str()); + this->Makefile->AddCacheDefinition + ("CMAKE_PROJECT_NAME", + args[0].c_str(), + "Value Computed by CMake", cmCacheManager::STATIC); } std::vector<std::string> languages; |