summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-14 14:12:48 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-14 14:36:57 (GMT)
commitba247ccabab05c0aad4fe7f56dd020bfa8ff4583 (patch)
tree259898e83b41d70b454287d01e88923ecb1bbd4e /Source/cmGeneratorTarget.h
parentd025faf436c86ee9cc033fbb324a9bc2c18757fa (diff)
downloadCMake-ba247ccabab05c0aad4fe7f56dd020bfa8ff4583.zip
CMake-ba247ccabab05c0aad4fe7f56dd020bfa8ff4583.tar.gz
CMake-ba247ccabab05c0aad4fe7f56dd020bfa8ff4583.tar.bz2
IPO: Consider support for each language separately
We only define `INTERPROCEDURAL_OPTIMIZATION` behavior for C, CXX, and Fortran languages. Do not try to enable support for other languages. Furthermore, each language builds with a different compiler, so check for support by CMake and the compiler for each language independently. Fixes: #16944
Diffstat (limited to 'Source/cmGeneratorTarget.h')
-rw-r--r--Source/cmGeneratorTarget.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 134b7c7..c04d62b 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -165,7 +165,7 @@ public:
const char* GetFeature(const std::string& feature,
const std::string& config) const;
- bool IsIPOEnabled(const std::string& config) const;
+ bool IsIPOEnabled(std::string const& lang, std::string const& config) const;
bool IsLinkInterfaceDependentBoolProperty(const std::string& p,
const std::string& config) const;
@@ -385,7 +385,8 @@ public:
std::vector<std::string>& archVec) const;
std::string GetFeatureSpecificLinkRuleVariable(
- std::string const& var, std::string const& config) const;
+ std::string const& var, std::string const& lang,
+ std::string const& config) const;
/** Return the rule variable used to create this type of target. */
std::string GetCreateRuleVariable(std::string const& lang,