mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +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:

committed by
Brad King

parent
4f78b9ff2d
commit
f27492a4db
@@ -137,6 +137,11 @@ bool cmVisualStudioGeneratorOptions::IsWinRt() const
|
|||||||
return this->FlagMap.find("CompileAsWinRT") != this->FlagMap.end();
|
return this->FlagMap.find("CompileAsWinRT") != this->FlagMap.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool cmVisualStudioGeneratorOptions::IsManaged() const
|
||||||
|
{
|
||||||
|
return this->FlagMap.find("CompileAsManaged") != this->FlagMap.end();
|
||||||
|
}
|
||||||
|
|
||||||
bool cmVisualStudioGeneratorOptions::UsingUnicode() const
|
bool cmVisualStudioGeneratorOptions::UsingUnicode() const
|
||||||
{
|
{
|
||||||
// Look for the a _UNICODE definition.
|
// Look for the a _UNICODE definition.
|
||||||
|
@@ -49,6 +49,7 @@ public:
|
|||||||
|
|
||||||
bool IsDebug() const;
|
bool IsDebug() const;
|
||||||
bool IsWinRt() const;
|
bool IsWinRt() const;
|
||||||
|
bool IsManaged() const;
|
||||||
// Write options to output.
|
// Write options to output.
|
||||||
void OutputPreprocessorDefinitions(std::ostream& fout, const char* prefix,
|
void OutputPreprocessorDefinitions(std::ostream& fout, const char* prefix,
|
||||||
const char* suffix,
|
const char* suffix,
|
||||||
|
Reference in New Issue
Block a user