From 1ce6c4abc37af3ab08cd3a5794ff1f3aece9a9c4 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 29 May 2019 16:29:43 +0200 Subject: [PATCH] CMake: Do not include libraries in "all" target This makes sure creator will not build libraries that are not needed by the plugins that are enabled. Change-Id: Ia568d56be24d47d895d70cc78f6601dd611f1aaa Reviewed-by: Cristian Adam Reviewed-by: Alessandro Portale --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b59ba91aec8..cf807a680e2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -126,7 +126,8 @@ function(add_qtc_library name) set(library_type OBJECT) endif() - add_library(${name} ${library_type} ${_arg_SOURCES}) + # Do not just build libraries... + add_library(${name} ${library_type} EXCLUDE_FROM_ALL ${_arg_SOURCES}) if (${name} MATCHES "^[^0-9]+") string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL)