diff options
author | Brad King <brad.king@kitware.com> | 2017-04-12 19:26:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-04-13 20:10:32 (GMT) |
commit | 2f6f6f0c153f19f7efab96b2a4c3c9c05362372b (patch) | |
tree | fb29e1fb2755c4d92e5e4e54d3d2cdbceac6517c /Source | |
parent | 888c8af6cbfcbaffeca2fb65a0da864141ffff7b (diff) | |
download | CMake-2f6f6f0c153f19f7efab96b2a4c3c9c05362372b.zip CMake-2f6f6f0c153f19f7efab96b2a4c3c9c05362372b.tar.gz CMake-2f6f6f0c153f19f7efab96b2a4c3c9c05362372b.tar.bz2 |
Xcode: Use config-specific object library files on link lines
We can do this only with Xcode 5 and above where we list the object
library files in the per-config link line value. On older Xcode
versions we list the object files as sources so that dependencies work
correctly, but that does not allow per-config objects. (Xcode may allow
per-config source exclusion but only by base name.)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 10343fd..57d9156 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -2673,7 +2673,7 @@ void cmGlobalXCodeGenerator::AddDependAndLinkInformation(cmXCodeObject* target) std::string linkObjs; const char* sep = ""; std::vector<cmSourceFile const*> objs; - gt->GetExternalObjects(objs, ""); + gt->GetExternalObjects(objs, configName); for (std::vector<cmSourceFile const*>::const_iterator oi = objs.begin(); oi != objs.end(); ++oi) { if ((*oi)->GetObjectLibrary().empty()) { |