mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
Allow LINK_SEARCH_{START,END}_STATIC props to have default values.
Use the CMAKE_LINK_SEARCH_START_STATIC and CMAKE_LINK_SEARCH_END_STATIC variables to initialize the LINK_SEARCH_START_STATIC and LINK_SEARCH_END_STATIC target properties respectively.
This commit is contained in:
@@ -522,9 +522,10 @@ bool cmComputeLinkInformation::Compute()
|
||||
// libraries are found.
|
||||
const char* lss =
|
||||
this->Target->Target->GetProperty("LINK_SEARCH_END_STATIC");
|
||||
if(cmSystemTools::IsOn(lss))
|
||||
if(lss)
|
||||
{
|
||||
this->SetCurrentLinkType(LinkStatic);
|
||||
this->SetCurrentLinkType(
|
||||
cmSystemTools::IsOn(lss) ? LinkStatic : LinkShared);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -862,7 +863,8 @@ void cmComputeLinkInformation::ComputeLinkTypeInfo()
|
||||
const char* lss =
|
||||
this->Target->Target->GetProperty("LINK_SEARCH_START_STATIC");
|
||||
this->StartLinkType = cmSystemTools::IsOn(lss)? LinkStatic : LinkShared;
|
||||
this->CurrentLinkType = this->StartLinkType;
|
||||
this->CurrentLinkType = LinkUnknown;
|
||||
this->SetCurrentLinkType(this->StartLinkType);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
@@ -306,6 +306,8 @@ void cmTarget::SetMakefile(cmMakefile* mf)
|
||||
this->SetPropertyDefault("CXX_STANDARD", 0);
|
||||
this->SetPropertyDefault("CXX_STANDARD_REQUIRED", 0);
|
||||
this->SetPropertyDefault("CXX_EXTENSIONS", 0);
|
||||
this->SetPropertyDefault("LINK_SEARCH_START_STATIC", 0);
|
||||
this->SetPropertyDefault("LINK_SEARCH_END_STATIC", 0);
|
||||
}
|
||||
|
||||
// Collect the set of configuration types.
|
||||
|
||||
Reference in New Issue
Block a user