Detect the path of qmake correctly for Qt5.
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 24 May 2014 04:05:58 +0000 (12:05 +0800)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 24 May 2014 04:05:58 +0000 (12:05 +0800)
cmake/FindInstallConfigPath.cmake

index 62dadb4..8bcd3fa 100644 (file)
@@ -5,6 +5,11 @@
 #   qmake -query QT_INSTALL_CONFIGURATION
 #
 if(NOT DEFINED LXQT_ETC_XDG_DIR)
+    if (USE_QT5)
+        get_target_property(QT_QMAKE_EXECUTABLE ${Qt5Core_QMAKE_EXECUTABLE} IMPORTED_LOCATION)
+        message(STATUS "${QT_QMAKE_EXECUTABLE}")
+    endif()
+
     if(NOT QT_QMAKE_EXECUTABLE)
         message(FATAL_ERROR "LXQT_ETC_XDG_DIR: qmake not found or wrongly detected (inlude before qt configured?)")
     endif()