|
|
@@ -2011,13 +2011,13 @@ void cmLocalGenerator::AddCMP0018Flags(std::string &flags, cmTarget* target,
|
|
|
else
|
|
|
{
|
|
|
if (target->GetType() == cmTarget::OBJECT_LIBRARY)
|
|
|
- {
|
|
|
+ {
|
|
|
if (target->GetPropertyAsBool("POSITION_INDEPENDENT_CODE"))
|
|
|
{
|
|
|
this->AddPositionIndependentFlags(flags, lang, targetType);
|
|
|
}
|
|
|
return;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
if (target->GetLinkInterfaceDependentBoolProperty(
|
|
|
"POSITION_INDEPENDENT_CODE",
|