1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-18 17:31:57 +08:00

VS: Add internal API for detecting "managed" projects

This is in preparation for adding CSharp language support to the VS
generator.
This commit is contained in:
Michael Stürmer
2016-09-23 12:15:40 +02:00
committed by Brad King
parent 4f78b9ff2d
commit f27492a4db
2 changed files with 6 additions and 0 deletions

View File

@@ -137,6 +137,11 @@ bool cmVisualStudioGeneratorOptions::IsWinRt() const
return this->FlagMap.find("CompileAsWinRT") != this->FlagMap.end();
}
bool cmVisualStudioGeneratorOptions::IsManaged() const
{
return this->FlagMap.find("CompileAsManaged") != this->FlagMap.end();
}
bool cmVisualStudioGeneratorOptions::UsingUnicode() const
{
// Look for the a _UNICODE definition.

View File

@@ -49,6 +49,7 @@ public:
bool IsDebug() const;
bool IsWinRt() const;
bool IsManaged() const;
// Write options to output.
void OutputPreprocessorDefinitions(std::ostream& fout, const char* prefix,
const char* suffix,