summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-11-05 13:05:08 (GMT)
committerBrad King <brad.king@kitware.com>2010-11-05 13:05:08 (GMT)
commit95f149e61f1ad8c8cadd74f2dbe36a2613815cc2 (patch)
treef1cec8d2621f029c8243db86ed1a73ec1bed4008 /Source/cmMakefileTargetGenerator.cxx
parent07cfa57ec5f9f906e075512646100719a0a615aa (diff)
downloadCMake-95f149e61f1ad8c8cadd74f2dbe36a2613815cc2.zip
CMake-95f149e61f1ad8c8cadd74f2dbe36a2613815cc2.tar.gz
CMake-95f149e61f1ad8c8cadd74f2dbe36a2613815cc2.tar.bz2
Define LINK_DEPENDS target property (#11406)
Custom Makefile link rules may need to depend on linker scripts. Define this property to allow user-specified link-time dependencies.
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileTargetGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx
index 0c150df..9153f3a 100644
--- a/Source/cmMakefileTargetGenerator.cxx
+++ b/Source/cmMakefileTargetGenerator.cxx
@@ -1534,6 +1534,13 @@ void cmMakefileTargetGenerator
{
depends.push_back(*obj);
}
+
+ // Add user-specified dependencies.
+ if(const char* linkDepends =
+ this->Target->GetProperty("LINK_DEPENDS"))
+ {
+ cmSystemTools::ExpandListArgument(linkDepends, depends);
+ }
}
//----------------------------------------------------------------------------