File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ add_executable(hello_bsoncxx ../../hello_bsoncxx.cpp)
42
42
43
43
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
44
44
find_package (Boost 1.56.0 REQUIRED )
45
- target_include_directories (hello_bsoncxx
46
- PRIVATE ${Boost_INCLUDE_DIRS}
47
- )
45
+ target_link_libraries (hello_bsoncxx PRIVATE Boost::boost )
48
46
endif ()
49
47
50
48
target_link_libraries (hello_bsoncxx
Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ add_executable(hello_bsoncxx ../../hello_bsoncxx.cpp)
42
42
43
43
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
44
44
find_package (Boost 1.56.0 REQUIRED )
45
- target_include_directories (hello_bsoncxx
46
- PRIVATE ${Boost_INCLUDE_DIRS}
47
- )
45
+ target_link_libraries (hello_bsoncxx PRIVATE Boost::boost )
48
46
endif ()
49
47
50
48
target_link_libraries (hello_bsoncxx
Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ add_executable(hello_mongocxx ../../hello_mongocxx.cpp)
42
42
43
43
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
44
44
find_package (Boost 1.56.0 REQUIRED )
45
- target_include_directories (hello_mongocxx
46
- PRIVATE ${Boost_INCLUDE_DIRS}
47
- )
45
+ target_link_libraries (hello_mongocxx PRIVATE Boost::boost )
48
46
endif ()
49
47
50
48
target_link_libraries (hello_mongocxx
Original file line number Diff line number Diff line change @@ -42,9 +42,7 @@ add_executable(hello_mongocxx ../../hello_mongocxx.cpp)
42
42
43
43
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
44
44
find_package (Boost 1.56.0 REQUIRED )
45
- target_include_directories (hello_mongocxx
46
- PRIVATE ${Boost_INCLUDE_DIRS}
47
- )
45
+ target_link_libraries (hello_mongocxx PRIVATE Boost::boost )
48
46
endif ()
49
47
50
48
target_link_libraries (hello_mongocxx
You can’t perform that action at this time.
0 commit comments