summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-29 12:53:13 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-10-29 12:53:26 (GMT)
commit0486f9e56eff776f1960880b1a825c208090466d (patch)
tree532c64c8249cd97e137d026137d185e6bef7e4c4 /Source/cmGlobalGenerator.cxx
parent71833ee6b5f2c17627264b50f3a09a1cdab1f7b9 (diff)
parentc782f140d4dbbffec03d834e0f1b3cf5a7acb004 (diff)
downloadCMake-0486f9e56eff776f1960880b1a825c208090466d.zip
CMake-0486f9e56eff776f1960880b1a825c208090466d.tar.gz
CMake-0486f9e56eff776f1960880b1a825c208090466d.tar.bz2
Merge topic 'swift-win32-property'
c782f140d4 Swift: Ignore WIN32_EXECUTABLE property outside of Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6658
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 25bdb31..38034d4 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -337,6 +337,12 @@ bool cmGlobalGenerator::CheckTargetsForType() const
bool failed = false;
for (const auto& generator : this->LocalGenerators) {
for (const auto& target : generator->GetGeneratorTargets()) {
+ std::string systemName =
+ target->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME");
+ if (systemName.find("Windows") == std::string::npos) {
+ continue;
+ }
+
if (target->GetType() == cmStateEnums::EXECUTABLE) {
std::vector<std::string> const& configs =
target->Makefile->GetGeneratorConfigs(