diff --git a/CMakeLists.txt b/CMakeLists.txt index d525b59..116095b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,6 @@ option(ADA_USE_SIMDUTF "Whether to use SIMDUTF for IDNA" OFF) # 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 OR ADA_USE_SIMDUTF) - 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 5e7ffe0..f60a2d5 100644 --- a/tools/cli/CMakeLists.txt +++ b/tools/cli/CMakeLists.txt @@ -37,12 +37,8 @@ if(MSVC AND BUILD_SHARED_LIBS) "$" # <--this is in-file "$") # <--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)