File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ function (_import_bson)
7575 message (STATUS "NOTE: Using system-wide libbson library. This is intended only for package maintainers." )
7676 find_library (_MONGOCRYPT_SYSTEM_LIBBSON_SHARED "${CMAKE_SHARED_LIBRARY_PREFIX} bson2${CMAKE_SHARED_LIBRARY_SUFFIX} " )
7777 find_library (_MONGOCRYPT_SYSTEM_LIBBSON_STATIC "${CMAKE_STATIC_LIBRARY_PREFIX} bson2${CMAKE_STATIC_LIBRARY_SUFFIX} " )
78- find_path (_MONGOCRYPT_SYSTEM_LIBBSON_INCLUDE_DIR bson/bson.h PATH_SUFFIXES bson-2.1.0)
78+ find_package (bson 2.0 REQUIRED)
79+ get_target_property (_BSON_SHARED_INCL_DIR_PROP bson::shared INTERFACE_INCLUDE_DIRECTORIES )
80+ set (_MONGOCRYPT_SYSTEM_LIBBSON_INCLUDE_DIR "${_BSON_SHARED_INCL_DIR_PROP} " CACHE FILEPATH "Internal use only" )
7981 add_library (bson_shared SHARED IMPORTED )
8082 add_library (bson_static STATIC IMPORTED )
8183 set_target_properties (bson_shared bson_static PROPERTIES
You can’t perform that action at this time.
0 commit comments