From 733eacfd593f9dc25ec0737420101632b851ba69 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 20 Feb 2022 23:51:14 +0300 Subject: [PATCH] Put Boost.Atomic dependency on a separate line in CMakeLists.txt. Works around https://github.com/boostorg/cmake/issues/17. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be07806a3..43009e378 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)