summaryrefslogtreecommitdiffstats
path: root/Source/cmBuildSharedLibrariesCommand.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/cmBuildSharedLibrariesCommand.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/cmBuildSharedLibrariesCommand.cxx')
-rw-r--r--Source/cmBuildSharedLibrariesCommand.cxx26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmBuildSharedLibrariesCommand.cxx b/Source/cmBuildSharedLibrariesCommand.cxx
index 781ec80..676ce2c 100644
--- a/Source/cmBuildSharedLibrariesCommand.cxx
+++ b/Source/cmBuildSharedLibrariesCommand.cxx
@@ -43,27 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// cmBuildSharedLibrariesCommand
bool cmBuildSharedLibrariesCommand::InitialPass(std::vector<std::string>& args)
{
- // Now check and see if the value has been stored in the cache
- // already, if so use that value and don't look for the program
- const char* cacheValue
- = cmCacheManager::GetInstance()->GetCacheValue("BUILD_SHARED_LIBS");
- if(!cacheValue)
- {
- cmCacheManager::GetInstance()->
- AddCacheEntry("BUILD_SHARED_LIBS",
- false,
- "If ON, the resulting project or makefiles will "
- "produce shared libraries. WARNING! On some "
- "UNIX platforms, changing this setting will require"
- " removing all .o files, as they will have to be recompiled "
- " with -fpic or some other flag.");
- m_Makefile->AddDefinition("BUILD_SHARED_LIBS", false);
- }
- else
- {
- m_Makefile->AddDefinition("BUILD_SHARED_LIBS",
- cmCacheManager::
- GetInstance()->IsOn("BUILD_SHARED_LIBS"));
- }
- return true;
+ this->SetError("This command has been deprecated. The BUILD_SHARED_LIBS\n"
+ "cache entry is now always added by CMake.\n");
+ return false;
}