2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 09:57:41 +00:00

[#3731] Added missing boost dependencies

This commit is contained in:
Francis Dupont 2025-03-11 12:04:13 +01:00
parent 91c383b92a
commit 1d60359a19

View File

@ -146,7 +146,7 @@ boost_headers = [
'boost/system/error_code.hpp', 'boost/system/error_code.hpp',
] ]
foreach hdr : boost_headers foreach hdr : boost_headers
cpp.has_header(hdr, required: true) cpp.has_header(hdr, dependencies: [boost_dep], required: true)
endforeach endforeach
# Logging # Logging
@ -234,7 +234,11 @@ if CRYPTO_DEP.name() == botan.name()
message('Using Botan.') message('Using Botan.')
elif CRYPTO_DEP.name() == openssl.name() elif CRYPTO_DEP.name() == openssl.name()
conf_data.set('WITH_OPENSSL', true) conf_data.set('WITH_OPENSSL', true)
cpp.has_header('boost/asio/ssl.hpp', required: true) cpp.has_header(
'boost/asio/ssl.hpp',
dependencies: [boost_dep],
required: true,
)
message('Using OpenSSL.') message('Using OpenSSL.')
else else
error('Dependency not found: neither Botan nor OpenSSL.') error('Dependency not found: neither Botan nor OpenSSL.')
@ -478,6 +482,7 @@ else
endif endif
result = cpp.run( result = cpp.run(
fs.read('compiler-checks/get-boost-version.cc'), fs.read('compiler-checks/get-boost-version.cc'),
dependencies: [boost_dep],
name: 'Get Boost version', name: 'Get Boost version',
) )
if result.returncode() == 0 if result.returncode() == 0