blob: 2599c18f9b76250cbe056740ed9b5369732894af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*=========================================================================
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)
{
cmCacheManager::GetInstance()->AddCacheEntry("BUILD_SHARED_LIBS",false);
m_Makefile->AddDefinition("BUILD_SHARED_LIBS", false);
}
else
{
m_Makefile->AddDefinition("BUILD_SHARED_LIBS",
cmCacheManager::
GetInstance()->IsOn("BUILD_SHARED_LIBS"));
}
return true;
}
|