summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaNormalTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-03-08 13:39:40 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-03-08 13:39:40 (GMT)
commit7f1c9fae3899be28cfb8e15aac643f9143da85a6 (patch)
tree25a0f9adcf878975f9f401347784e76eca5e4617 /Source/cmNinjaNormalTargetGenerator.cxx
parenta6e6f93b6c32c941e2ccc91c754812df049f9832 (diff)
parent9e165a64addbf997d5af58caccd2c93ec2c77a95 (diff)
downloadCMake-7f1c9fae3899be28cfb8e15aac643f9143da85a6.zip
CMake-7f1c9fae3899be28cfb8e15aac643f9143da85a6.tar.gz
CMake-7f1c9fae3899be28cfb8e15aac643f9143da85a6.tar.bz2
Merge topic 'ninja-osx-versions'
9e165a64 Ninja: Add OS X dylib versioning (#14140) 1f2b39c6 cmCommonTargetGenerator: Adopt AppendOSXVerFlag method
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaNormalTargetGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx
index 17561b5..c34df3c 100644
--- a/Source/cmNinjaNormalTargetGenerator.cxx
+++ b/Source/cmNinjaNormalTargetGenerator.cxx
@@ -504,6 +504,16 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement()
}
}
+ // Add OS X version flags, if any.
+ if(this->GeneratorTarget->GetType() == cmState::SHARED_LIBRARY ||
+ this->GeneratorTarget->GetType() == cmState::MODULE_LIBRARY)
+ {
+ this->AppendOSXVerFlag(vars["LINK_FLAGS"], this->TargetLinkLanguage,
+ "COMPATIBILITY", true);
+ this->AppendOSXVerFlag(vars["LINK_FLAGS"], this->TargetLinkLanguage,
+ "CURRENT", false);
+ }
+
this->addPoolNinjaVariable("JOB_POOL_LINK", &gt, vars);
this->AddModuleDefinitionFlag(vars["LINK_FLAGS"]);