summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2014-08-12 21:18:00 (GMT)
committerBrad King <brad.king@kitware.com>2014-08-13 14:17:31 (GMT)
commit1412960e8974c2d50e4601982c0b0dccd2e20ed1 (patch)
tree414848c7d461f2dd0f1ad5bc36042d7daf1dc8b9 /Source/QtDialog
parent1f8cfc3b5f4bd87216e48c6bf909b59f10b9065e (diff)
downloadCMake-1412960e8974c2d50e4601982c0b0dccd2e20ed1.zip
CMake-1412960e8974c2d50e4601982c0b0dccd2e20ed1.tar.gz
CMake-1412960e8974c2d50e4601982c0b0dccd2e20ed1.tar.bz2
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.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetupDialog.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx
index 8a37797..0574681 100644
--- a/Source/QtDialog/CMakeSetupDialog.cxx
+++ b/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);