Skip to content

Commit

Permalink
cmake: Switch to crc32c upstream build system
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Sep 15, 2024
1 parent bfb07d1 commit c40dea3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 124 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ set(CMAKE_SKIP_INSTALL_RPATH TRUE)
add_subdirectory(test)
add_subdirectory(doc)

include(cmake/crc32c.cmake)
include(cmake/leveldb.cmake)
include(cmake/minisketch.cmake)
add_subdirectory(src)
Expand Down
123 changes: 0 additions & 123 deletions cmake/crc32c.cmake

This file was deleted.

14 changes: 14 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ include(AddWindowsResources)
configure_file(${PROJECT_SOURCE_DIR}/cmake/bitcoin-config.h.in config/bitcoin-config.h USE_SOURCE_PERMISSIONS @ONLY)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})

#=============================
# crc32c subtree
#=============================
message("")
message("Configuring crc32c subtree...")
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
set(CRC32C_BUILD_TESTS OFF)
set(CRC32C_BUILD_BENCHMARKS OFF)
set(CRC32C_USE_GLOG OFF)
set(CRC32C_INSTALL OFF)
set(BUILD_SHARED_LIBS OFF)
add_subdirectory(crc32c)
unset(BUILD_SHARED_LIBS)

# TODO: After the transition from Autotools to CMake, the obj/ subdirectory
# could be dropped as its only purpose was to separate a generated header
# from source files.
Expand Down

0 comments on commit c40dea3

Please sign in to comment.