diff options
author | Thiago M. de C. Marques <thiago_manhente@live.com> | 2016-11-01 21:04:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-02 12:50:03 (GMT) |
commit | 13bc31aab5c51667369acce3a5ca9d1df57a1611 (patch) | |
tree | d79b06e0c26a74896b312a57547318fcc90267fd | |
parent | 713424ad207aa0f5e01f8c16b2ee1c442a91893a (diff) | |
download | CMake-13bc31aab5c51667369acce3a5ca9d1df57a1611.zip CMake-13bc31aab5c51667369acce3a5ca9d1df57a1611.tar.gz CMake-13bc31aab5c51667369acce3a5ca9d1df57a1611.tar.bz2 |
Help: Update example Qt 5 find_package call to add missing component
Running CMake on it caused the following error:
error: Target "publisher" links to target "Qt5::DBus" but the target
was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Add the missing DBus component.
-rw-r--r-- | Help/manual/cmake-qt.7.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Help/manual/cmake-qt.7.rst b/Help/manual/cmake-qt.7.rst index bd0a984..7827065 100644 --- a/Help/manual/cmake-qt.7.rst +++ b/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(Qt5 COMPONENTS Widgets REQUIRED) + find_package(Qt5 COMPONENTS Widgets DBus REQUIRED) add_executable(publisher publisher.cpp) target_link_libraries(publisher Qt5::Widgets Qt5::DBus) |