Skip to content

Commit

Permalink
build: Temporary workaround to build with XCode 15 (osquery#8197)
Browse files Browse the repository at this point in the history
std::unary_function has been removed from C++17,
but boost still needs it.
Only recently in XCode 15 it has been removed; asks Boost to stop using it.
  • Loading branch information
Smjert authored Nov 22, 2023
1 parent 904409e commit 222991a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/cmake/source/boost/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ function(importBoostInterfaceLibraries)
importBoostInterfaceLibrary("${library_name}" ${library_dependency_list})
endforeach()

target_compile_definitions(thirdparty_boost_container_hash INTERFACE
BOOST_NO_CXX98_FUNCTION_BASE
)

# Additional settings for the libraries we just imported
if(PLATFORM_LINUX)
target_compile_definitions(thirdparty_boost_uuid INTERFACE
Expand Down

0 comments on commit 222991a

Please sign in to comment.