diff options
Diffstat (limited to 'doc/src/development/cmake-manual.qdoc')
-rw-r--r-- | doc/src/development/cmake-manual.qdoc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/src/development/cmake-manual.qdoc b/doc/src/development/cmake-manual.qdoc index b0f856ac2..99b72cfef 100644 --- a/doc/src/development/cmake-manual.qdoc +++ b/doc/src/development/cmake-manual.qdoc @@ -56,8 +56,8 @@ \snippet snippets/cmake/CMakeLists.pro 0 In order for \c{find_package} to be successful, Qt 5 must be found below the CMAKE_PREFIX_PATH, - or the Qt5<Module>_DIR must be set in the \c{CMake} cache to the location of the - Qt5WidgetsConfig.cmake file. The easiest way to use \c{CMake} is to set the CMAKE_PREFIX_PATH + or the \c{Qt5_DIR} must be set in the \c{CMake} cache to the location of the + \c{Qt5Config.cmake} file. The easiest way to use \c{CMake} is to set the CMAKE_PREFIX_PATH environment variable to the install prefix of Qt 5. The CMAKE_AUTOMOC setting runs moc automatically when required. For more on this feature see @@ -105,7 +105,8 @@ for use. The name of the imported target for each module matches the name of the module with a prefix of 'Qt5::', for example Qt5::Widgets. All of the package-specific variables have a consistent name with a prefix of the name of the package. For example, - \c{find_package}(Qt5Widgets) will make the following variables available if successfully found: + \c{find_package(Qt5 COMPONENTS Widgets)} will make the following variables available + if successfully found: \list \li Qt5Widgets_VERSION String describing the version of the module. |