forked from qt-creator/qt-creator
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 <cristian.adam@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -126,7 +126,8 @@ function(add_qtc_library name)
|
|||||||
set(library_type OBJECT)
|
set(library_type OBJECT)
|
||||||
endif()
|
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]+")
|
if (${name} MATCHES "^[^0-9]+")
|
||||||
string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL)
|
string(TOUPPER "${name}_LIBRARY" EXPORT_SYMBOL)
|
||||||
|
Reference in New Issue
Block a user