File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
26
26
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Gv" )
27
27
endif ()
28
28
29
- include_directories (
30
- ${CMAKE_INSTALL_PREFIX} /${BSONCXX_HEADER_INSTALL_DIR}
31
- ${CMAKE_INSTALL_PREFIX} /${MONGOCXX_HEADER_INSTALL_DIR}
32
- )
33
-
34
29
set (BENCHMARK_LIBRARY
35
30
bson/bson_decoding.hpp
36
31
bson/bson_encoding.hpp
@@ -63,4 +58,12 @@ set_dist_list (benchmark_DIST
63
58
add_executable (microbenchmarks ${BENCHMARK_LIBRARY} )
64
59
set (THREADS_PREFER_PTHREAD_FLAG ON )
65
60
find_package (Threads REQUIRED )
66
- target_link_libraries (microbenchmarks mongocxx bsoncxx Threads::Threads )
61
+ target_link_libraries (microbenchmarks PRIVATE Threads::Threads )
62
+
63
+ if (MONGOCXX_BUILD_SHARED )
64
+ target_link_libraries (microbenchmarks PRIVATE mongocxx_shared )
65
+ endif ()
66
+
67
+ if (MONGOCXX_BUILD_STATIC )
68
+ target_link_libraries (microbenchmarks PRIVATE mongocxx_static )
69
+ endif ()
You can’t perform that action at this time.
0 commit comments