Skip to content

Commit

Permalink
cmake: only apply workaround for boost < 1.84
Browse files Browse the repository at this point in the history
boostorg/phoenix#111 was fixed in master.
see the fix which addresses the issue:
boostorg/phoenix@8913607

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Dec 15, 2023
1 parent 7911eea commit c24a4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ else()
endif()
include_directories(BEFORE SYSTEM ${Boost_INCLUDE_DIRS})

if(Boost_VERSION VERSION_EQUAL 1.81 OR Boost_VERSION VERSION_EQUAL 1.82)
if(Boost_VERSION VERSION_LESS 1.84)
# This is a workaround for https://github.com/boostorg/phoenix/issues/111
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-DBOOST_PHOENIX_STL_TUPLE_H_>)
endif()
Expand Down

0 comments on commit c24a4c1

Please sign in to comment.