diff --git a/cmake/deps/boost.cmake b/cmake/deps/boost.cmake index 51e40f434c0..302edd715be 100644 --- a/cmake/deps/boost.cmake +++ b/cmake/deps/boost.cmake @@ -1,8 +1,8 @@ set(BOOST_MINOR_MINIMAL 86) set(BOOST_MINOR_LATEST 86) -find_package(Boost 1.${BOOST_MINOR_MINIMAL} EXACT QUIET GLOBAL) -if (NOT Boost_FOUND AND NOT OSSIA_USE_SYSTEM_LIBRARIES) +# find_package(Boost 1.${BOOST_MINOR_MINIMAL} EXACT QUIET GLOBAL) +# if (NOT Boost_FOUND AND NOT OSSIA_USE_SYSTEM_LIBRARIES) set(OSSIA_MUST_INSTALL_BOOST 1 CACHE INTERNAL "") set(BOOST_VERSION "boost_1_${BOOST_MINOR_LATEST}_0" CACHE INTERNAL "") @@ -25,7 +25,7 @@ if (NOT Boost_FOUND AND NOT OSSIA_USE_SYSTEM_LIBRARIES) list(PREPEND CMAKE_FIND_ROOT_PATH "${BOOST_ROOT}") find_package(Boost 1.${BOOST_MINOR_LATEST} REQUIRED GLOBAL) -endif() +# endif() add_library(boost INTERFACE IMPORTED GLOBAL) set_property(TARGET boost PROPERTY diff --git a/src/ossia/network/sockets/unix_socket.hpp b/src/ossia/network/sockets/unix_socket.hpp index 99a24d4dcd3..0145b853229 100644 --- a/src/ossia/network/sockets/unix_socket.hpp +++ b/src/ossia/network/sockets/unix_socket.hpp @@ -164,7 +164,7 @@ class unix_stream_client void close() { - m_context.post([this] { + boost::asio::post(m_context, [this] { m_socket.close(); on_close(); });