-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Unable to build on macOS 14 #6707
Description
Building this project on macOS 14 currently fails. The accompanying Xcode 15 supports a version of C++ that does not contain std::unary_function, a function used by boost 1.7x. This has been resolved with boost 1.8x, which can't be used here because it also breaks the build.
The fix suggested here worked, I just needed to add
add_compile_definitions(_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)
to the CMakeLists.txt file. Another workaround would of course be to restore compatibility with boost 1.8x.
The second issue I encountered was, that for some reason multiple unused result and unused parameter warnings popped up. As they were treated as errors, the build failed. By modifying the CMakeLists.txt again I was able to build successfully.
I added
add_compile_options(-Wno-unused-result -Wno-unused-parameter)
I have little experience with all of this, that's why I post this as a bug report instead of a PR. Not sure if it would be better to fix the affected code.