cmake: use .exe suffix only on Windows
authorPeter Kümmel <syntheticpp@gmx.net>
Mon, 27 Aug 2012 17:56:04 +0000 (19:56 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Aug 2012 17:55:03 +0000 (19:55 +0200)
Change-Id: I36ba61bd4690de0bfe4a44e579eb554c82b53bb4
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
mkspecs/features/create_cmake.prf

index 48e00ec..21984db 100644 (file)
@@ -80,7 +80,6 @@ macx {
 } else:win32 {
     CMAKE_WINDOWS_BUILD = "true"
     CMAKE_FIND_OTHER_LIBRARY_BUILD = "true"
-    CMAKE_BIN_SUFFIX = ".exe"
 
     CMAKE_LIB_FILE_LOCATION_DEBUG = Qt$${CMAKE_MODULE_NAME}$${QT_LIBINFIX}d$$eval(QT.$${MODULE}.MAJOR_VERSION).dll
     CMAKE_LIB_FILE_LOCATION_RELEASE = Qt$${CMAKE_MODULE_NAME}$${QT_LIBINFIX}$$eval(QT.$${MODULE}.MAJOR_VERSION).dll
@@ -141,6 +140,7 @@ CMAKE_RELEASE_TYPE =
 #   true, and 'make release' is subsequently invoked, CMake is only aware of
 #   the debug libraries at build time.
 
+equals(QMAKE_HOST.os, Windows): CMAKE_BIN_SUFFIX = ".exe"
 if (build_all|CONFIG(debug, debug|release)):CMAKE_DEBUG_TYPE = debug
 if (build_all|CONFIG(release, debug|release)):CMAKE_RELEASE_TYPE = release