Skip to content

Commit

Permalink
Fixes the compliation error under latest MacOS (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
sighingnow authored Mar 13, 2024
1 parent 6871cba commit 6d6d7ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ macro(find_boost)
add_compile_options(-DBOOST_SYSTEM_NO_DEPRECATED)
# eliminate a lot of warnings for newer version of boost library.
add_compile_options(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)
# fixes the std::unary_function error
add_compile_options(-DBOOST_NO_CXX98_FUNCTION_BASE)
add_compile_options(-D_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)
endmacro()

macro(find_etcd_cpp_apiv3)
Expand Down

0 comments on commit 6d6d7ec

Please sign in to comment.