diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2016-09-23 10:15:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-19 15:14:19 (GMT) |
commit | f27492a4db2c56f334b2ca5c746b01b8e9a04995 (patch) | |
tree | 4d89162f6654d7fa30dbcbaebf77b694826b222d /Source | |
parent | 4f78b9ff2df89d5b4104f92251feb0a7f0976d7f (diff) | |
download | CMake-f27492a4db2c56f334b2ca5c746b01b8e9a04995.zip CMake-f27492a4db2c56f334b2ca5c746b01b8e9a04995.tar.gz CMake-f27492a4db2c56f334b2ca5c746b01b8e9a04995.tar.bz2 |
VS: Add internal API for detecting "managed" projects
This is in preparation for adding CSharp language support to the VS
generator.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudioGeneratorOptions.cxx | 5 | ||||
-rw-r--r-- | Source/cmVisualStudioGeneratorOptions.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx index 9badda6..4be183d 100644 --- a/Source/cmVisualStudioGeneratorOptions.cxx +++ b/Source/cmVisualStudioGeneratorOptions.cxx @@ -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. diff --git a/Source/cmVisualStudioGeneratorOptions.h b/Source/cmVisualStudioGeneratorOptions.h index 4eeae3d..0a0b96d 100644 --- a/Source/cmVisualStudioGeneratorOptions.h +++ b/Source/cmVisualStudioGeneratorOptions.h @@ -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, |