We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9acc4 commit c513b5eCopy full SHA for c513b5e
tests/CMakeLists.txt
@@ -226,12 +226,12 @@ find_package(Boost 1.56)
226
227
if(Boost_FOUND)
228
if(NOT TARGET Boost::headers)
229
+ add_library(Boost::headers IMPORTED INTERFACE)
230
if(TARGET Boost::boost)
231
# Classic FindBoost
- add_library(Boost::headers ALIAS Boost::boost)
232
+ set_property(TARGET Boost::boost PROPERTY INTERFACE_LINK_LIBRARIES Boost::boost)
233
else()
234
# Very old FindBoost, or newer Boost than CMake in older CMakes
- add_library(Boost::headers IMPORTED INTERFACE)
235
set_property(TARGET Boost::headers PROPERTY INTERFACE_INCLUDE_DIRECTORIES
236
${Boost_INCLUDE_DIRS})
237
endif()
0 commit comments