Hi, I have this pending patch:
https://codereview.qt-project.org/#change,44532 Given find_package(Qt5 COMPONENTS Widgets # I don't have QtQuick installed. OPTIONAL_COMPONENTS Svg Quick ) message("Qt5_FOUND: ${Qt5_FOUND}") message("Qt5Gui_FOUND: ${Qt5Gui_FOUND}") message("Qt5Widgets_FOUND: ${Qt5Widgets_FOUND}") message("Qt5Svg_FOUND: ${Qt5Svg_FOUND}") message("Qt5Quick_FOUND: ${Qt5Quick_FOUND}") the output is $ cmake .. CMake Warning at /home/stephen/dev/prefix/qtbase/lib/cmake/Qt5/Qt5Config.cmake:24 (find_package): Could not find a package configuration file provided by "Qt5Quick" with any of the following names: Qt5QuickConfig.cmake qt5quick-config.cmake Add the installation prefix of "Qt5Quick" to CMAKE_PREFIX_PATH or set "Qt5Quick_DIR" to a directory containing one of the above files. If "Qt5Quick" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:62 (find_package) Qt5_FOUND: 1 Qt5Gui_FOUND: 1 Qt5Widgets_FOUND: 1 Qt5Svg_FOUND: 1 Qt5Quick_FOUND: 0 -- Configuring done -- Generating done -- Build files have been written to: /home/stephen/dev/src/playground/cmake/build Given: find_package(Qt5 COMPONENTS Widgets Quick) message("Qt5_FOUND: ${Qt5_FOUND}") message("Qt5Gui_FOUND: ${Qt5Gui_FOUND}") message("Qt5Widgets_FOUND: ${Qt5Widgets_FOUND}") message("Qt5Quick_FOUND: ${Qt5Quick_FOUND}") The output is: CMake Warning at /home/stephen/dev/prefix/qtbase/lib/cmake/Qt5/Qt5Config.cmake:24 (find_package): Could not find a package configuration file provided by "Qt5Quick" with any of the following names: Qt5QuickConfig.cmake qt5quick-config.cmake Add the installation prefix of "Qt5Quick" to CMAKE_PREFIX_PATH or set "Qt5Quick_DIR" to a directory containing one of the above files. If "Qt5Quick" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): CMakeLists.txt:62 (find_package) CMake Warning at CMakeLists.txt:62 (find_package): Found package configuration file: /home/stephen/dev/prefix/qtbase/lib/cmake/Qt5/Qt5Config.cmake but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT FOUND. Reason given by package: Failed to find module "Qt5Quick" in prefix "/home/stephen/dev/prefix/qtbase" Qt5_FOUND: 0 Qt5Gui_FOUND: 1 Qt5Widgets_FOUND: 1 Qt5Svg_FOUND: Qt5Quick_FOUND: 0 -- Configuring done -- Generating done -- Build files have been written to: /home/stephen/dev/src/playground/cmake/build I didn't closely follow the threads around this. Is there any other behavior that I should account for here? Thanks, Steve. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers