Explorar o código

cmake-gui: Pass CMAKE_SYSTEM_VERSION from cross-compile configuration

Although this value can be configured in the dialog, it was simply not
passed to the project as CMAKE_SYSTEM_VERSION.  Fix that.
Gilles Khouzam %!s(int64=11) %!d(string=hai) anos
pai
achega
1412960e89
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Source/QtDialog/CMakeSetupDialog.cxx

+ 3 - 0
Source/QtDialog/CMakeSetupDialog.cxx

@@ -756,6 +756,9 @@ bool CMakeSetupDialog::setupFirstConfigure()
       QString systemName = dialog.getSystemName();
       m->insertProperty(QCMakeProperty::STRING, "CMAKE_SYSTEM_NAME",
                         tr("CMake System Name"), systemName, false);
+      QString systemVersion = dialog.getSystemVersion();
+      m->insertProperty(QCMakeProperty::STRING, "CMAKE_SYSTEM_VERSION",
+                        tr("CMake System Version"), systemVersion, false);
       QString cxxCompiler = dialog.getCXXCompiler();
       m->insertProperty(QCMakeProperty::FILEPATH, "CMAKE_CXX_COMPILER",
                         tr("CXX compiler."), cxxCompiler, false);