summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalXCodeGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-07-10 20:51:44 (GMT)
committerBrad King <brad.king@kitware.com>2009-07-10 20:51:44 (GMT)
commita232dbe8d23729e4aeeb3e27fe0a807903e82a62 (patch)
treecb0e83679ce19a02b87c5b1a4e2857cb9206cde4 /Source/cmGlobalXCodeGenerator.h
parentbb2228ea1a2596c7068620a094e2ded3b4e5c8df (diff)
downloadCMake-a232dbe8d23729e4aeeb3e27fe0a807903e82a62.zip
CMake-a232dbe8d23729e4aeeb3e27fe0a807903e82a62.tar.gz
CMake-a232dbe8d23729e4aeeb3e27fe0a807903e82a62.tar.bz2
BUG: Fix Xcode linker language
Xcode does not seem to support direct requests for using the linker for a particular language. It always infers the linker using the languages in the source files. When no user source files compile with target's linker language we add one to help Xcode pick the linker. A typical use case is when a C executable links to a C++ archive. The executable has no C++ source files but we need to use the C++ linker.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.h')
-rw-r--r--Source/cmGlobalXCodeGenerator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h
index ba1529d..e7bb20c 100644
--- a/Source/cmGlobalXCodeGenerator.h
+++ b/Source/cmGlobalXCodeGenerator.h
@@ -128,6 +128,8 @@ private:
cmXCodeObject* CreateObjectReference(cmXCodeObject*);
cmXCodeObject* CreateXCodeTarget(cmTarget& target,
cmXCodeObject* buildPhases);
+ void ForceLinkerLanguages();
+ void ForceLinkerLanguage(cmTarget& cmtarget);
const char* GetTargetFileType(cmTarget& cmtarget);
const char* GetTargetProductType(cmTarget& cmtarget);
std::string AddConfigurations(cmXCodeObject* target, cmTarget& cmtarget);