|
@@ -231,9 +231,11 @@ int cmake::Generate(const std::vector<std::string>& args)
|
|
|
mf.GenerateMakefile();
|
|
mf.GenerateMakefile();
|
|
|
|
|
|
|
|
// Before saving the cache
|
|
// Before saving the cache
|
|
|
- // if the project did not define LIBRARY_OUTPUT_PATH and
|
|
|
|
|
- // EXECUTABLE_OUTPUT_PATH, add them now, so users
|
|
|
|
|
- // can edit the values in the cache.
|
|
|
|
|
|
|
+ // if the project did not define one of the entries below, add them now
|
|
|
|
|
+ // so users can edit the values in the cache:
|
|
|
|
|
+ // LIBRARY_OUTPUT_PATH
|
|
|
|
|
+ // EXECUTABLE_OUTPUT_PATH
|
|
|
|
|
+ // BUILD_SHARED_LIBS
|
|
|
if(!cmCacheManager::GetInstance()->GetCacheValue("LIBRARY_OUTPUT_PATH"))
|
|
if(!cmCacheManager::GetInstance()->GetCacheValue("LIBRARY_OUTPUT_PATH"))
|
|
|
{
|
|
{
|
|
|
cmCacheManager::GetInstance()->AddCacheEntry("LIBRARY_OUTPUT_PATH", "",
|
|
cmCacheManager::GetInstance()->AddCacheEntry("LIBRARY_OUTPUT_PATH", "",
|
|
@@ -246,6 +248,12 @@ int cmake::Generate(const std::vector<std::string>& args)
|
|
|
"Single output directory for building all executables.",
|
|
"Single output directory for building all executables.",
|
|
|
cmCacheManager::PATH);
|
|
cmCacheManager::PATH);
|
|
|
}
|
|
}
|
|
|
|
|
+ if(!cmCacheManager::GetInstance()->GetCacheValue("BUILD_SHARED_LIBS"))
|
|
|
|
|
+ {
|
|
|
|
|
+ cmCacheManager::GetInstance()->AddCacheEntry("BUILD_SHARED_LIBS", "OFF",
|
|
|
|
|
+ "Build with shared libraries.",
|
|
|
|
|
+ cmCacheManager::BOOL);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
cmCacheManager::GetInstance()->SaveCache(&mf);
|
|
cmCacheManager::GetInstance()->SaveCache(&mf);
|