Skip to content

Commit

Permalink
In-tree cmake builds instead of FindBoost.
Browse files Browse the repository at this point in the history
  • Loading branch information
mzimbres committed Dec 28, 2023
1 parent 2685d44 commit 8166a94
Showing 1 changed file with 62 additions and 3 deletions.
65 changes: 62 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,72 @@ target_compile_features(boost_redis INTERFACE cxx_std_17)

# Dependencies
if (BOOST_REDIS_MAIN_PROJECT)
# If we're the root project, error if a dependency is not found
find_package(Boost 1.83 REQUIRED COMPONENTS headers)
set(deps
system
assert
config
throw_exception
asio
variant2
mp11
winapi
predef
align
context
core
coroutine
static_assert
pool
date_time
smart_ptr
exception
integer
move
type_traits
algorithm
utility
io
lexical_cast
numeric/conversion
mpl
range
tokenizer
tuple
array
bind
concept_check
function
iterator
regex
unordered
preprocessor
container
conversion
container_hash
detail
optional
function_types
fusion
intrusive
describe
typeof
functional
test
json
)

foreach(dep IN LISTS deps)
add_subdirectory(../${dep} boostorg/${dep})
endforeach()

find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)
target_link_libraries(boost_redis
INTERFACE
Boost::headers
Boost::system
Boost::asio
Boost::json
Boost::unit_test_framework
Threads::Threads
OpenSSL::Crypto
OpenSSL::SSL
Expand Down

0 comments on commit 8166a94

Please sign in to comment.