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:

committed by
Brad King

parent
4f78b9ff2d
commit
f27492a4db
@@ -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.
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user