| 386 | } |
| 387 | |
| 388 | void TopLevelCMakeVarCondSet(cmMakefile& mf, std::string const& name, |
| 389 | std::string const& value) |
| 390 | { |
| 391 | // Set the CMAKE_PROJECT_XXX variable to be the highest-level |
| 392 | // project name in the tree. If there are two project commands |
| 393 | // in the same CMakeLists.txt file, and it is the top level |
| 394 | // CMakeLists.txt file, then go with the last one. |
| 395 | if (!mf.GetDefinition(name) || mf.IsRootMakefile()) { |
| 396 | mf.RemoveDefinition(name); |
| 397 | mf.AddCacheDefinition(name, value, "Value Computed by CMake", |
| 398 | cmStateEnums::STATIC); |
| 399 | } |
| 400 | } |
| 401 | } |
no test coverage detected
searching dependent graphs…