Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/SetupBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ cpmaddpackage(
VERSION ${BOOST_VERSION}
URL https://github.com/boostorg/boost/releases/download/boost-${BOOST_VERSION}/boost-${BOOST_VERSION}-cmake.tar.xz
URL_HASH SHA256=67acec02d0d118b5de9eb441f5fb707b3a1cdd884be00ca24b9a73c995511f74
PATCHES boost_locale_pr_273.patch
OPTIONS "BOOST_ENABLE_CMAKE ON"
"BOOST_INCLUDE_LIBRARIES ${BOOST_INCLUDE_LIBRARIES_LIST}"
"BOOST_SKIP_INSTALL_RULES ON"
Expand Down
14 changes: 14 additions & 0 deletions cmake/boost_locale_pr_273.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- a/libs/locale/CMakeLists.txt
+++ b/libs/locale/CMakeLists.txt
@@ -232,9 +232,10 @@
list(FILTER sources_src INCLUDE REGEX "^src/")
set(sources_inc ${sources})
list(FILTER sources_inc EXCLUDE REGEX "^src/")
+list(REMOVE_ITEM sources_inc "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/locale.hpp")
+source_group("headers" FILES "include/boost/locale.hpp")
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/src" PREFIX "sources" FILES ${sources_src})
source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}/include/boost/locale" PREFIX "headers" FILES ${sources_inc})
-source_group("headers" FILES "include/boost/locale.hpp")

message(STATUS "Boost.Locale: "
"iconv ${BOOST_LOCALE_ENABLE_ICONV}, "
7 changes: 7 additions & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ if(TARGET Boost::endian)
# Boost from CPM
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::endian Boost::lockfree)
endif()
if(BOOST_CPM)
target_link_libraries(
${PROJECT_NAME}
PUBLIC Boost::algorithm
PRIVATE Boost::exception
)
endif()

list(
APPEND
Expand Down
Loading