Explorar o código

Help: Update example Qt 5 find_package call to use COMPONENTS

Marcus D. Hanwell %!s(int64=9) %!d(string=hai) anos
pai
achega
ff11989cc3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Help/manual/cmake-qt.7.rst

+ 1 - 1
Help/manual/cmake-qt.7.rst

@@ -29,7 +29,7 @@ Qt 4 and Qt 5 may be used together in the same
   set(CMAKE_AUTOMOC ON)
   set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
-  find_package(Qt5Widgets REQUIRED)
+  find_package(Qt5 COMPONENTS Widgets REQUIRED)
   add_executable(publisher publisher.cpp)
   target_link_libraries(publisher Qt5::Widgets Qt5::DBus)