summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago M. de C. Marques <thiago_manhente@live.com>2016-11-01 21:04:13 (GMT)
committerBrad King <brad.king@kitware.com>2016-11-02 12:51:57 (GMT)
commit1c52e6511fe3b73c640862f76884dcfed46186dc (patch)
treea6084be19c3f5d0803b5dca745d4e6ec18f42f37
parent4c802a326b76d776c895ebbe3c0ebf2a0e223ba2 (diff)
downloadCMake-1c52e6511fe3b73c640862f76884dcfed46186dc.zip
CMake-1c52e6511fe3b73c640862f76884dcfed46186dc.tar.gz
CMake-1c52e6511fe3b73c640862f76884dcfed46186dc.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.rst2
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)