Skip to content

Commit d21a365

Browse files
fechantillac-antidotkevinAlbs
authored andcommitted
cmake utils: Use Boost::boost target to link against boost library
1 parent a9521f5 commit d21a365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/BsoncxxUtil.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function(bsoncxx_add_library TARGET OUTPUT_NAME LINK_TYPE)
3131
ExternalProject_Get_Property(EP_mnmlstc_core source_dir)
3232
target_include_directories(${TARGET} PUBLIC $<BUILD_INTERFACE:${source_dir}/include>)
3333
elseif(BSONCXX_POLY_USE_BOOST)
34-
target_include_directories(${TARGET} PUBLIC ${Boost_INCLUDE_DIRS})
34+
target_link_libraries(${TARGET} PUBLIC Boost::boost)
3535
endif()
3636

3737
target_link_libraries(${TARGET} PRIVATE ${libbson_target})

0 commit comments

Comments
 (0)