summaryrefslogtreecommitdiff
path: root/Packaging/QtSDK/qt.tools.cmake.xx.qs.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-04-10 10:04:51 -0400
committerBrad King <brad.king@kitware.com>2017-04-10 10:04:51 -0400
commite265ddecfc8df5509acd16958da134291a96df9f (patch)
tree14b185e88dbb75dcdfc6bd75eeed06df5152fb2a /Packaging/QtSDK/qt.tools.cmake.xx.qs.in
parent63a57d1bd994338ec1b1c4e04f82b511d66ec761 (diff)
parent94420a7b61d6c83dbd2ba0ce566af6624cd07aad (diff)
downloadcmake-e265ddecfc8df5509acd16958da134291a96df9f.tar.gz
Merge branch 'packaging-qtsdk' into release
Diffstat (limited to 'Packaging/QtSDK/qt.tools.cmake.xx.qs.in')
-rw-r--r--Packaging/QtSDK/qt.tools.cmake.xx.qs.in30
1 files changed, 14 insertions, 16 deletions
diff --git a/Packaging/QtSDK/qt.tools.cmake.xx.qs.in b/Packaging/QtSDK/qt.tools.cmake.xx.qs.in
index 81ce157a10..e806dd7ec8 100644
--- a/Packaging/QtSDK/qt.tools.cmake.xx.qs.in
+++ b/Packaging/QtSDK/qt.tools.cmake.xx.qs.in
@@ -25,24 +25,22 @@ Component.prototype.createOperations = function()
{
component.createOperations();
- if (installer.value("os") == "win") {
- try {
- if (installer.value("SDKToolBinary") == "")
- return;
+ try {
+ if (installer.value("SDKToolBinary") == "")
+ return;
- var cmId = component.name;
- installer.setValue("CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_ID", cmId);
+ var cmId = component.name;
+ installer.setValue("CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_ID", cmId);
- component.addOperation("Execute",
- ["{0,2}", "@SDKToolBinary@", "addCMake",
- "--id", cmId,
- "--name", "%CMake_IFW_ROOT_COMPONENT_DISPLAY_NAME%",
- "--path", "@CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_BIN_DIR@/cmake.exe",
- "UNDOEXECUTE",
- "@SDKToolBinary@", "rmCMake", "--id", cmId]);
+ component.addOperation("Execute",
+ ["{0,2}", "@SDKToolBinary@", "addCMake",
+ "--id", cmId,
+ "--name", "%CMake_IFW_ROOT_COMPONENT_DISPLAY_NAME%",
+ "--path", "@CMAKE%CMake_VERSION_MAJOR%%CMake_VERSION_MINOR%_BIN_DIR@/cmake%CMAKE_EXECUTABLE_SUFFIX%",
+ "UNDOEXECUTE",
+ "@SDKToolBinary@", "rmCMake", "--id", cmId]);
- } catch( e ) {
- print( e );
- }
+ } catch( e ) {
+ print( e );
}
}