vcpkg/ports/mongo-c-driver/bson.patch

24 lines
480 B
Diff
Raw Normal View History

2017-01-07 15:21:19 +08:00
diff --git a/build/cmake/FindBSON.cmake b/build/cmake/FindBSON.cmake
index 06fd82e..3ac549d 100644
2017-01-07 15:21:19 +08:00
--- a/build/cmake/FindBSON.cmake
+++ b/build/cmake/FindBSON.cmake
@@ -11,15 +11,15 @@ endif ()
2017-01-07 15:21:19 +08:00
find_path(BSON_INCLUDE_DIR
NAMES
- libbson-1.0/bson.h
+ bson.h
2017-01-07 15:21:19 +08:00
HINTS
${BSON_ROOT_DIR}
PATH_SUFFIXES
2017-01-07 15:21:19 +08:00
include
+ libbson-1.0
+ include/libbson-1.0
2017-01-07 15:21:19 +08:00
)
-set(BSON_INCLUDE_DIR "${BSON_INCLUDE_DIR}/libbson-1.0")
-
find_library(BSON
NAMES
"bson-1.0"