summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-06-19 19:50:39 (GMT)
committerBrad King <brad.king@kitware.com>2001-06-19 19:50:39 (GMT)
commita5087b8cca258f3e764fe47a9bcdabeb9df703a9 (patch)
tree6e55d0216296e025ca70e8bb6f95d566285a6299 /Source/cmake.cxx
parent7a3af0474d97e1e3443eaa0576b0cf0766d1ec1b (diff)
downloadCMake-a5087b8cca258f3e764fe47a9bcdabeb9df703a9.zip
CMake-a5087b8cca258f3e764fe47a9bcdabeb9df703a9.tar.gz
CMake-a5087b8cca258f3e764fe47a9bcdabeb9df703a9.tar.bz2
ENH: CMake now always adds the BUILD_SHARED_LIBS cache entry. The BUILD_SHARED_LIBRARIES command that used to be used is now deprecated.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 6b67ef0..f54e556 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -231,9 +231,11 @@ int cmake::Generate(const std::vector<std::string>& args)
mf.GenerateMakefile();
// 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"))
{
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.",
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);