From a149a575a7842b08b8adaa46a6d91a73b8a57bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?= Date: Thu, 13 Mar 2025 16:13:48 -0400 Subject: [PATCH] cmake: add missing argument to add_subdirectory We need the EXCLUDE_FROM_ALL argument when adding git submodules via add_subdirectory in the CMakeLists file. Without it, the "install" make target for Jami will also install the submodule's files. GitLab: #1947 Change-Id: I477c4733951ac5a9fa2b6a52a1463c4a585ab8b7 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64eee5ff..622bf710 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -685,7 +685,7 @@ list(APPEND CLIENT_LIBS tidy-static) # ZXing-cpp configuration set(BUILD_EXAMPLES OFF CACHE BOOL "") set(BUILD_BLACKBOX_TESTS OFF CACHE BOOL "") -add_subdirectory(3rdparty/zxing-cpp) +add_subdirectory(3rdparty/zxing-cpp EXCLUDE_FROM_ALL) # Add ZXing-cpp to includes and libraries list(APPEND CLIENT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/zxing-cpp/core/src)