forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'conan-io:master' into master
- Loading branch information
Showing
11 changed files
with
441 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
recipes/mongo-cxx-driver/all/patches/3.10.1-0001-dirs.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 2a960f7..f809b6c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -315,7 +315,7 @@ unset(dist_generated_depends CACHE) | ||
set(BUILD_SOURCE_DIR ${CMAKE_BINARY_DIR}) | ||
|
||
include(MakeDistFiles) | ||
- | ||
+if(FALSE) | ||
add_custom_target(hugo_dir | ||
COMMAND ${CMAKE_COMMAND} -E make_directory hugo | ||
) | ||
@@ -371,7 +371,7 @@ add_custom_target(format-lint | ||
add_custom_target(docs | ||
DEPENDS hugo doxygen-current | ||
) | ||
- | ||
+endif() | ||
set(THIRD_PARTY_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/third_party) | ||
set(DATA_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/data) | ||
|
||
@@ -381,13 +381,13 @@ option(ENABLE_MACRO_GUARD_TESTS "Enable targets for macro guard compile tests." | ||
if(ENABLE_TESTS) | ||
enable_testing() | ||
endif() | ||
- | ||
+set(MONGO_CXX_PROJECT_DIR ${CMAKE_CURRENT_SOURCE_DIR}) | ||
+set(MONGO_CXX_PROJECT_BIN_DIR ${CMAKE_CURRENT_BINARY_DIR}) | ||
add_subdirectory(src) | ||
+# add_subdirectory(examples EXCLUDE_FROM_ALL) | ||
|
||
-add_subdirectory(examples EXCLUDE_FROM_ALL) | ||
- | ||
-add_subdirectory(benchmark EXCLUDE_FROM_ALL) | ||
- | ||
+# add_subdirectory(benchmark EXCLUDE_FROM_ALL) | ||
+if(FALSE) | ||
# Implement 'dist' target | ||
# | ||
# CMake does not implement anything like 'dist' from autotools. | ||
@@ -525,3 +525,4 @@ endif() | ||
if(CMAKE_GENERATOR_TOOLSET) | ||
message(STATUS "\tinstance: ${CMAKE_GENERATOR_TOOLSET}") | ||
endif() | ||
+endif() | ||
diff --git a/src/bsoncxx/CMakeLists.txt b/src/bsoncxx/CMakeLists.txt | ||
index ce53a71..bcd0a61 100644 | ||
--- a/src/bsoncxx/CMakeLists.txt | ||
+++ b/src/bsoncxx/CMakeLists.txt | ||
@@ -93,8 +93,8 @@ if(TARGET bson_shared OR TARGET bson_static) | ||
set(BSONCXX_PKG_DEP "find_dependency(bson-${LIBBSON_REQUIRED_ABI_VERSION} REQUIRED)") | ||
else() | ||
# Attempt to find libbson by new package name (without lib). | ||
- find_package(bson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} QUIET) | ||
- | ||
+ find_package(bson-${LIBBSON_REQUIRED_ABI_VERSION} REQUIRED) | ||
+ set(bson-${LIBBSON_REQUIRED_ABI_VERSION}_FOUND TRUE) | ||
if(bson-${LIBBSON_REQUIRED_ABI_VERSION}_FOUND) | ||
message(STATUS "found libbson version ${bson-${LIBBSON_REQUIRED_ABI_VERSION}_VERSION}") | ||
|
26 changes: 26 additions & 0 deletions
26
recipes/mongo-cxx-driver/all/patches/3.10.1-0002-remove-abi-suffixes.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/cmake/BsoncxxUtil.cmake b/cmake/BsoncxxUtil.cmake | ||
index c72f98e..5f977e1 100644 | ||
--- a/cmake/BsoncxxUtil.cmake | ||
+++ b/cmake/BsoncxxUtil.cmake | ||
@@ -76,7 +76,7 @@ function(bsoncxx_add_library TARGET OUTPUT_NAME LINK_TYPE) | ||
endif() | ||
|
||
# MSVC-specific ABI tag suffixes. | ||
- if(MSVC) | ||
+ if(0) | ||
set(vs_suffix "") | ||
|
||
# Include the target architecture if applicable (Win32, x64, etc.). | ||
diff --git a/cmake/MongocxxUtil.cmake b/cmake/MongocxxUtil.cmake | ||
index de9210c..f9937f4 100644 | ||
--- a/cmake/MongocxxUtil.cmake | ||
+++ b/cmake/MongocxxUtil.cmake | ||
@@ -63,7 +63,7 @@ function(mongocxx_add_library TARGET OUTPUT_NAME LINK_TYPE) | ||
endif() | ||
|
||
# MSVC-specific ABI tag suffixes. Inherit from bsoncxx. | ||
- if(MSVC) | ||
+ if(0) | ||
get_target_property(vs_suffix ${bsoncxx_target} BSONCXX_ABI_TAG_VS_SUFFIX) | ||
set_target_properties(${TARGET} PROPERTIES | ||
BSONCXX_ABI_TAG_VS_SUFFIX ${vs_suffix} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"3.10.1": | ||
folder: all | ||
"3.8.1": | ||
folder: all | ||
"3.8.0": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sources: | ||
"2.2.1": | ||
url: https://github.com/mpusz/units/archive/v2.2.1.tar.gz | ||
sha256: ce5edb27fad9c54b388040341a03d7f2462d61dcedad85b4c983c0e648a91bac |
Oops, something went wrong.