소스 검색

VS: Add internal API for detecting "managed" projects

This is in preparation for adding CSharp language support to the VS
generator.
Michael Stürmer 9 년 전
부모
커밋
f27492a4db
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Source/cmVisualStudioGeneratorOptions.cxx
  2. 1 0
      Source/cmVisualStudioGeneratorOptions.h

+ 5 - 0
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.

+ 1 - 0
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,