Explorar o código

BUG: fix #5137, now with the modified CMakeDetermineSystem.cmake the
CMAKE_HOST_SYSTEM_xxx variables have to be preset, not the CMAKE_SYSTEM_xxx
ones

Alex

Alexander Neundorf %!s(int64=18) %!d(string=hai) anos
pai
achega
ae035f7c90
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmGlobalGenerator.cxx

+ 1 - 1
Source/cmGlobalGenerator.cxx

@@ -234,7 +234,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
     cmOStringStream windowsVersionString;
     cmOStringStream windowsVersionString;
     windowsVersionString << osvi.dwMajorVersion << "." << osvi.dwMinorVersion;
     windowsVersionString << osvi.dwMajorVersion << "." << osvi.dwMinorVersion;
     windowsVersionString.str();
     windowsVersionString.str();
-    mf->AddDefinition("CMAKE_SYSTEM_VERSION", 
+    mf->AddDefinition("CMAKE_HOST_SYSTEM_VERSION", 
                       windowsVersionString.str().c_str());
                       windowsVersionString.str().c_str());
 #endif
 #endif
     // Read the DetermineSystem file
     // Read the DetermineSystem file