diff --git a/CMakeLists.txt b/CMakeLists.txt index df0cb92069..a45d234196 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -733,7 +733,7 @@ find_package(Threads REQUIRED) # Platform-specific library requirements # ====================================== -if (NOT TARGET Boost::headers) +if (TARGET Boost::headers) target_link_libraries(Boost::headers INTERFACE Boost::disable_autolinking) endif()