aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ada-url/no-cpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ada-url/no-cpm.patch')
-rw-r--r--vcpkg/ports/ada-url/no-cpm.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/ada-url/no-cpm.patch b/vcpkg/ports/ada-url/no-cpm.patch
new file mode 100644
index 0000000..8b00cca
--- /dev/null
+++ b/vcpkg/ports/ada-url/no-cpm.patch
@@ -0,0 +1,31 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1b55e39..23ce61f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -22,7 +22,6 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake)
+ # errors due to CPM, so this is here to support disabling all the testing
+ # and tooling for ada if one only wishes to use the ada library.
+ if(ADA_TESTING OR ADA_BENCHMARKS OR ADA_TOOLS)
+- include(cmake/CPM.cmake)
+ # CPM requires git as an implicit dependency
+ # We use googletest in the tests
+ if(ADA_TESTING)
+diff --git a/tools/cli/CMakeLists.txt b/tools/cli/CMakeLists.txt
+index 397b428..4b49928 100644
+--- a/tools/cli/CMakeLists.txt
++++ b/tools/cli/CMakeLists.txt
+@@ -8,12 +8,8 @@ if(MSVC AND BUILD_SHARED_LIBS)
+ "$<TARGET_FILE:ada>" # <--this is in-file
+ "$<TARGET_FILE_DIR:adaparse>") # <--this is out-file path
+ endif()
+-CPMAddPackage("gh:fmtlib/fmt#11.0.2")
+-CPMAddPackage(
+- GITHUB_REPOSITORY jarro2783/cxxopts
+- VERSION 3.2.0
+- OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES"
+-)
++find_package(cxxopts CONFIG REQUIRED)
++find_package(fmt CONFIG REQUIRED)
+ target_link_libraries(adaparse PRIVATE cxxopts::cxxopts fmt::fmt)
+
+ if(MSVC OR MINGW)