[libraries/qxmpp] /: CMake: Don't build everything when installing

Linus Jahn <[email protected]> Wed, 5 Aug 2026 11:57:29 +0000 (UTC)
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit acf23dc90dd0602e9036a97c8f70bf29ebffb7f2 by Linus Jahn.
Committed on 05/08/2026 at 11:57.
Pushed by lnj into branch 'master'.

CMake: Don't build everything when installing

This makes it possible to run "sudo make install" without having to
build (and rebuild) tests, examples and documentation first.

M  +3    -0    CMakeLists.txt

https://invent.kde.org/libraries/qxmpp/-/commit/acf23dc90dd0602e9036a97c8f70bf29ebffb7f2

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 668d97c3..820e2cdd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,9 @@ project(qxmpp VERSION 1.17.0)
 
 set(SO_VERSION 10)
 
+# do not build everything (tests, examples, docs) when installing
+set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY TRUE)
+
 # C/C++ settings
 set(CMAKE_CXX_STANDARD 20)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)