GammaRay icon indicating copy to clipboard operation
GammaRay copied to clipboard

feature_summary() breakes Windows build

Open syntheticpp opened this issue 12 years ago • 5 comments

-- Building for: Visual Studio 12 2013
-- The C compiler identification is MSVC 18.0.30219.0

...

-- Found Qt4: D:/qt4/bin/qmake.exe (found suitable version "4.8.6", minimum required is "4.7.0")
Qt QTWEBKIT library not found.

....

-- The following REQUIRED packages have not been found:

 * Qt4 (required version >= 4.7.0) , <http://qt-project.org/>

CMake Error at C:/Program Files/CMake/share/cmake-3.0/Modules/FeatureSummary.cmake:537 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake
  run.
Call Stack (most recent call first):
  CMakeLists.txt:462 (feature_summary)

syntheticpp avatar Apr 17 '14 08:04 syntheticpp

Does this help?

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 351dd48..7f3df33 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -194,7 +194,7 @@ if(Qt5Core_FOUND)
 else()
   set(QT_USE_IMPORTED_TARGETS true)
   find_package(Qt4 ${QT_MIN_VERSION} REQUIRED QtCore QtGui QtNetwork)
-  find_package(Qt4 ${QT_MIN_VERSION} QUIET COMPONENTS QtScript QtScriptTools QtWebKit QtDesigner QtSvg QtTest)
+  find_package(Qt4 ${QT_MIN_VERSION} QUIET OPTIONAL_COMPONENTS QtScript QtScriptTools QtWebKit QtDesigner QtSvg QtTest)

   include(${QT_USE_FILE})
   set(HAVE_QT_CONCURRENT true)

krf avatar Apr 17 '14 08:04 krf

No, it does not recognize Qt at all. Looks like a cmake bug.

syntheticpp avatar Apr 18 '14 10:04 syntheticpp

hmm.. cmake3. never tested that.

winterz avatar Apr 18 '14 11:04 winterz

http://public.kitware.com/Bug/view.php?id=14888

syntheticpp avatar Apr 18 '14 13:04 syntheticpp

This can be closed then, upstream issue.

krf avatar May 22 '14 12:05 krf