diff options
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; |