Skip to content

Commit

Permalink
REQUIRED COMPONENTS
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr committed Oct 20, 2024
1 parent 30100c0 commit a9a9ede
Show file tree
Hide file tree
Showing 20 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if(NOT SILKWORM_CORE_ONLY)
set(CMAKE_POLICY_DEFAULT_CMP0048 NEW) # project() command manages VERSION variables
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) # Honor visibility properties for all target types

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
# Define Boost::headers target if missing because libtorrent needs it
if(NOT TARGET Boost::headers)
add_library(Boost::headers INTERFACE IMPORTED)
Expand Down
2 changes: 1 addition & 1 deletion cmd/capi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
]]

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)

# Target 'execute' is used to exercise the Silkworm C API library even if using C++ main
add_executable(execute execute.cpp)
Expand Down
2 changes: 1 addition & 1 deletion cmd/dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
]]

find_package(absl REQUIRED)
find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(CLI11 REQUIRED)
find_package(gRPC REQUIRED)
find_package(magic_enum REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion silkworm/db/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ add_subdirectory(test_util)

find_package(absl REQUIRED)
find_package(asio-grpc REQUIRED)
find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(gRPC REQUIRED)
find_package(magic_enum REQUIRED)
find_package(Microsoft.GSL REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion silkworm/db/datastore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_subdirectory(etl)
add_subdirectory(mdbx)
add_subdirectory(snapshots)

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)

# cmake-format: off
set(LIBS_PUBLIC
Expand Down
4 changes: 2 additions & 2 deletions silkworm/db/datastore/snapshots/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")
add_subdirectory(bittorrent)
add_subdirectory(seg)

find_package(absl REQUIRED strings)
find_package(Boost REQUIRED headers url) # headers for signals2
find_package(absl REQUIRED COMPONENTS strings)
find_package(Boost REQUIRED COMPONENTS headers url) # headers for signals2
find_package(magic_enum REQUIRED)
find_package(Microsoft.GSL REQUIRED)
find_package(OpenSSL REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions silkworm/db/datastore/snapshots/bittorrent/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")

find_package(absl REQUIRED strings)
find_package(Boost REQUIRED headers url)
find_package(absl REQUIRED COMPONENTS strings)
find_package(Boost REQUIRED COMPONENTS headers url)
find_package(GTest REQUIRED)
find_package(LibtorrentRasterbar REQUIRED)
find_package(magic_enum REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion silkworm/db/datastore/snapshots/seg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")

# circular_buffer, iostreams (for fsync)
find_package(Boost REQUIRED headers iostreams)
find_package(Boost REQUIRED COMPONENTS headers iostreams)

silkworm_library(
silkworm_snapshots_seg
Expand Down
2 changes: 1 addition & 1 deletion silkworm/infra/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set(TARGET silkworm_infra)

find_package(absl REQUIRED)
find_package(asio-grpc REQUIRED)
find_package(Boost REQUIRED headers container thread)
find_package(Boost REQUIRED COMPONENTS headers container thread)
find_package(Catch2 REQUIRED)
find_package(gRPC REQUIRED)
find_package(GTest REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion silkworm/infra/test_util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set(TARGET silkworm_infra_test_util)

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)

file(GLOB_RECURSE SRC CONFIGURE_DEPENDS "*.cpp" "*.hpp")

Expand Down
4 changes: 2 additions & 2 deletions silkworm/node/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ add_subdirectory(execution/block)
add_subdirectory(stagedsync/stages)
add_subdirectory(test_util)

find_package(absl REQUIRED strings)
find_package(absl REQUIRED COMPONENTS strings)
find_package(asio-grpc REQUIRED)
find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(gRPC REQUIRED)
find_package(GTest REQUIRED)
find_package(magic_enum REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions silkworm/node/stagedsync/stages/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")

find_package(absl REQUIRED btree)
find_package(absl REQUIRED COMPONENTS btree)
# circular_buffer
find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(magic_enum REQUIRED)
find_package(Microsoft.GSL REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion silkworm/node/test_util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set(TARGET silkworm_node_test_util)

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(GTest REQUIRED)

file(GLOB_RECURSE SRC CONFIGURE_DEPENDS "*.cpp" "*.hpp")
Expand Down
2 changes: 1 addition & 1 deletion silkworm/rpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_subdirectory(test_util)

find_package(absl REQUIRED)
find_package(asio-grpc REQUIRED)
find_package(Boost REQUIRED headers container)
find_package(Boost REQUIRED COMPONENTS headers container)
find_package(gRPC REQUIRED)
find_package(GTest REQUIRED)
find_package(jwt-cpp REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion silkworm/rpc/test_util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set(TARGET silkworm_rpcdaemon_test_util)

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(GTest REQUIRED)

file(GLOB_RECURSE SRC CONFIGURE_DEPENDS "*.cpp" "*.hpp")
Expand Down
2 changes: 1 addition & 1 deletion silkworm/sentry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")

find_package(absl REQUIRED)
find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(gRPC REQUIRED)
find_package(Microsoft.GSL REQUIRED)
find_package(OpenSSL REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion silkworm/sentry/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)

silkworm_library(silkworm_sentry_common PUBLIC Boost::headers silkworm_core silkworm_infra)
2 changes: 1 addition & 1 deletion silkworm/sentry/discovery/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
]]

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)

include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")

Expand Down
2 changes: 1 addition & 1 deletion silkworm/sentry/discovery/disc_v4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
]]

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)

include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")

Expand Down
2 changes: 1 addition & 1 deletion silkworm/sentry/discovery/node_db/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
limitations under the License.
]]

find_package(Boost REQUIRED headers)
find_package(Boost REQUIRED COMPONENTS headers)
find_package(SQLiteCpp REQUIRED)

include("${SILKWORM_MAIN_DIR}/cmake/common/targets.cmake")
Expand Down

0 comments on commit a9a9ede

Please sign in to comment.