Skip to content

Commit

Permalink
Put Boost.Atomic dependency on a separate line in CMakeLists.txt.
Browse files Browse the repository at this point in the history
Works around boostorg/cmake#17.
  • Loading branch information
Lastique committed Feb 20, 2022
1 parent 826edcc commit 733eacf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ target_link_libraries(boost_filesystem

if(NOT BOOST_FILESYSTEM_HAS_CXX20_ATOMIC_REF)
target_compile_definitions(boost_filesystem PRIVATE BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF)
target_link_libraries(boost_filesystem PRIVATE Boost::atomic)
target_link_libraries(boost_filesystem
PRIVATE
Boost::atomic
)
endif()

if(WIN32)
Expand Down

0 comments on commit 733eacf

Please sign in to comment.