GammaRay
GammaRay copied to clipboard
feature_summary() breakes Windows build
-- 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)
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)
No, it does not recognize Qt at all. Looks like a cmake bug.
hmm.. cmake3. never tested that.
http://public.kitware.com/Bug/view.php?id=14888
This can be closed then, upstream issue.