CMake/Source/cmBuildSharedLibrariesComma...

38 lines
1.1 KiB
C++
Raw Normal View History

2001-02-28 00:48:15 +03:00
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2000 National Library of Medicine
All rights reserved.
See COPYRIGHT.txt for copyright details.
=========================================================================*/
#include "cmBuildSharedLibrariesCommand.h"
// cmBuildSharedLibrariesCommand
bool cmBuildSharedLibrariesCommand::Invoke(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)
{
2001-04-24 20:40:37 +04:00
cmCacheManager::GetInstance()->AddCacheEntry("BUILD_SHARED_LIBS",false);
m_Makefile->AddDefinition("BUILD_SHARED_LIBS", false);
2001-02-28 00:48:15 +03:00
}
else
{
2001-04-24 20:40:37 +04:00
m_Makefile->AddDefinition("BUILD_SHARED_LIBS",
cmCacheManager::
GetInstance()->IsOn("BUILD_SHARED_LIBS"));
2001-02-28 00:48:15 +03:00
}
return true;
}