diff --git a/api/CMakeLists.txt b/api/CMakeLists.txt index f9baf42854..5b468baf83 100644 --- a/api/CMakeLists.txt +++ b/api/CMakeLists.txt @@ -62,7 +62,7 @@ foreach(f ${swagger_files}) list(APPEND swagger_gen_files "${scylla_swagger_gen_${fname}_files}") endforeach() -add_library(api) +add_library(api STATIC) target_sources(api PRIVATE api.cc diff --git a/rust/CMakeLists.txt b/rust/CMakeLists.txt index e61571015f..ce0ff1a9f6 100644 --- a/rust/CMakeLists.txt +++ b/rust/CMakeLists.txt @@ -69,7 +69,7 @@ generate_cxxbridge(wasmtime_bindings set_target_properties(Rust::rust_combined PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}") -add_library(wasmtime_bindings) +add_library(wasmtime_bindings STATIC) target_sources(wasmtime_bindings PRIVATE ${cxx_header} @@ -87,7 +87,7 @@ generate_cxxbridge(inc OUTPUT_DIR "${binding_gen_build_dir}" SOURCES inc_sources) -add_library(inc) +add_library(inc STATIC) target_sources(inc PRIVATE ${cxx_header} diff --git a/test/lib/CMakeLists.txt b/test/lib/CMakeLists.txt index f2bfa56a2a..0dd73c7ff2 100644 --- a/test/lib/CMakeLists.txt +++ b/test/lib/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(test-lib) +add_library(test-lib STATIC) target_sources(test-lib PRIVATE cql_assertions.cc diff --git a/test/raft/CMakeLists.txt b/test/raft/CMakeLists.txt index e672ee037a..c5f5b8387d 100644 --- a/test/raft/CMakeLists.txt +++ b/test/raft/CMakeLists.txt @@ -6,7 +6,7 @@ target_link_libraries(test-raft-helper test-lib Seastar::seastar_testing) -add_library(test-raft) +add_library(test-raft STATIC) target_sources(test-raft PRIVATE replication.cc)