summaryrefslogtreecommitdiffstats
path: root/Source/cmCommonTargetGenerator.h
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-04-27 17:54:42 (GMT)
committerRobert Maynard <rmaynard@nvidia.com>2022-05-04 13:33:35 (GMT)
commit627ef4c1d002cf642ef0ef9048c5e3fa24069516 (patch)
tree810f7b1cd4c27b9e20fee545147b25192fcd3de9 /Source/cmCommonTargetGenerator.h
parent1d82670bd4daff26d0d0169820b289bc401f4943 (diff)
downloadCMake-627ef4c1d002cf642ef0ef9048c5e3fa24069516.zip
CMake-627ef4c1d002cf642ef0ef9048c5e3fa24069516.tar.gz
CMake-627ef4c1d002cf642ef0ef9048c5e3fa24069516.tar.bz2
Provide guidance when trying to use non-enabled language
Fixes #23463
Diffstat (limited to 'Source/cmCommonTargetGenerator.h')
-rw-r--r--Source/cmCommonTargetGenerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCommonTargetGenerator.h b/Source/cmCommonTargetGenerator.h
index 5aba1c6..1b804b4 100644
--- a/Source/cmCommonTargetGenerator.h
+++ b/Source/cmCommonTargetGenerator.h
@@ -5,6 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <map>
+#include <set>
#include <string>
#include <vector>
@@ -74,6 +75,9 @@ protected:
std::string GetLinkerLauncher(const std::string& config);
+ bool HaveRequiredLanguages(const std::vector<cmSourceFile const*>& sources,
+ std::set<std::string>& languagesNeeded) const;
+
private:
using ByLanguageMap = std::map<std::string, std::string>;
struct ByConfig