aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2025-01-06 23:34:25 +0100
committertobtoht <tob@featherwallet.org>2025-01-07 16:41:38 +0100
commit05729aba78a1e661c7e6b74fe468e2b2486c9808 (patch)
treef970ca6b52aef2cfd854025317a30cfcebc9f121 /CMakeLists.txt
parent3e07750ea37dd6b906accac61dfb831005da0b15 (diff)
downloadmonzero-core-05729aba78a1e661c7e6b74fe468e2b2486c9808.tar.gz
monzero-core-05729aba78a1e661c7e6b74fe468e2b2486c9808.tar.xz
monzero-core-05729aba78a1e661c7e6b74fe468e2b2486c9808.zip
depends: boost: update to 1.66.0
-DBOOST_ASIO_HAS_STD_STRING_VIEW=1 fixes: /monero/contrib/depends/x86_64-unknown-freebsd/native/usr/include/c++/v1/experimental/string_view:18:3: warning: "<experimental/string_view> has been removed. Use <string_view> instead." [-W#warnings] /monero/contrib/depends/x86_64-unknown-freebsd/include/boost/asio/detail/string_view.hpp:32:12 : error: no member named 'experimental' in namespace 'std' using std::experimental::basic_string_view; ~~~~~^
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 37ad0a23e..db69b1b04 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1108,6 +1108,12 @@ add_definitions(-DBOOST_ASIO_ENABLE_SEQUENTIAL_STRAND_ALLOCATION)
add_definitions(-DBOOST_NO_AUTO_PTR)
add_definitions(-DBOOST_UUID_DISABLE_ALIGNMENT) # This restores UUID's std::has_unique_object_representations property
+if(FREEBSD AND DEPENDS)
+ # Boost 1.66.0 fails to detect that we have <string_view>, resulting in an incorrect include.
+ # This line can be removed if Boost is upgraded to > 1.66.0.
+ add_definitions(-DBOOST_ASIO_HAS_STD_STRING_VIEW)
+endif()
+
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
if(MINGW)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wa,-mbig-obj")