summaryrefslogtreecommitdiff
path: root/Source/cmGhsMultiTargetGenerator.h
diff options
context:
space:
mode:
authorFred Baksik <fdk17@ftml.net>2022-04-25 22:03:21 -0400
committerFred Baksik <fdk17@ftml.net>2022-04-27 10:33:51 -0400
commit158d6252cc6b01feea8f795b9007ea028765af7d (patch)
treec57fec1286d18a4fa63f448a6883504689748ae8 /Source/cmGhsMultiTargetGenerator.h
parentc6ead9be834f779ae5d45841043431944d00e379 (diff)
downloadcmake-158d6252cc6b01feea8f795b9007ea028765af7d.tar.gz
GHS: Set LANGUAGE type for source files
Use gbuild project syntax for setting the language type for the file. gbuild will pick the correct compiler or tool to use. NOTE: Language names come from gbuild config files. Therefore to compile a file with the C++ compiler use "C++" not "CXX". The previous implementation was passing the C compiler a flag to compile as C++ if LANGUAGE was set to "CXX".
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.h')
-rw-r--r--Source/cmGhsMultiTargetGenerator.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.h b/Source/cmGhsMultiTargetGenerator.h
index 9289a72083..d3e80e642b 100644
--- a/Source/cmGhsMultiTargetGenerator.h
+++ b/Source/cmGhsMultiTargetGenerator.h
@@ -65,8 +65,7 @@ private:
void WriteSourceProperty(std::ostream& fout, const cmSourceFile* sf,
std::string const& propName,
std::string const& propFlag);
- static void WriteObjectLangOverride(std::ostream& fout,
- const cmSourceFile* sourceFile);
+ static std::string WriteObjectLangOverride(const cmSourceFile* sourceFile);
bool DetermineIfIntegrityApp();
cmGeneratorTarget* GeneratorTarget;