mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-16 20:21:41 -06:00
cmVisualStudioGeneratorOptions: Add UsingDebugRuntime method
This commit is contained in:
@@ -124,6 +124,15 @@ bool cmVisualStudioGeneratorOptions::UsingDebugInfo() const
|
||||
return false;
|
||||
}
|
||||
|
||||
cm::optional<bool> cmVisualStudioGeneratorOptions::UsingDebugRuntime() const
|
||||
{
|
||||
cm::optional<bool> result;
|
||||
if (const char* rtl = this->GetFlag("RuntimeLibrary")) {
|
||||
result = strstr(rtl, "Debug") != nullptr;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
bool cmVisualStudioGeneratorOptions::IsWinRt() const
|
||||
{
|
||||
return this->FlagMap.find("CompileAsWinRT") != this->FlagMap.end();
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
|
||||
#include <cm/optional>
|
||||
|
||||
#include "cmGlobalVisualStudioGenerator.h"
|
||||
#include "cmIDEFlagTable.h"
|
||||
#include "cmIDEOptions.h"
|
||||
@@ -66,6 +68,7 @@ public:
|
||||
void FixManifestUACFlags();
|
||||
|
||||
bool UsingDebugInfo() const;
|
||||
cm::optional<bool> UsingDebugRuntime() const;
|
||||
bool IsWinRt() const;
|
||||
bool IsManaged() const;
|
||||
// Write options to output.
|
||||
|
||||
Reference in New Issue
Block a user