-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ada-url] update to 3.0.1 #43594
base: master
Are you sure you want to change the base?
[ada-url] update to 3.0.1 #43594
Changes from 5 commits
001fd5a
e828d1c
4bad00a
fc2644c
5acd6f4
d173099
91c3393
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,48 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index b206edb6..1db4099d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -30,7 +30,6 @@ option(ADA_TESTING "Build tests" ${BUILD_TESTING}) | ||
# 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 | ||
find_package(Git QUIET) | ||
# We use googletest in the tests | ||
diff --git a/tools/cli/CMakeLists.txt b/tools/cli/CMakeLists.txt | ||
index ff57220b..a6d90f29 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#10.2.1") | ||
-CPMAddPackage( | ||
- GITHUB_REPOSITORY jarro2783/cxxopts | ||
- VERSION 3.2.0 | ||
- OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES" | ||
-) | ||
+find_package(fmt CONFIG REQUIRED) | ||
+find_package(cxxopts CONFIG REQUIRED) | ||
target_link_libraries(adaparse PRIVATE cxxopts::cxxopts fmt::fmt) | ||
|
||
if(MSVC OR MINGW) | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index c70094f..b10b3c7 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) | ||
@@ -77,6 +76,7 @@ endif() | ||
|
||
|
||
add_library(ada::ada ALIAS ada) | ||
+target_compile_features(ada PUBLIC cxx_std_20) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this required? It should work as it is. |
||
if(ADA_TESTING) | ||
# IMPORTANT! | ||
@@ -103,7 +103,7 @@ if(NOT ADA_COVERAGE AND NOT EMSCRIPTEN) | ||
endif() | ||
|
||
if(ADA_TOOLS) | ||
- add_subdirectory(tools) | ||
+# add_subdirectory(tools) | ||
endif() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to be unnecessary. |
||
|
||
install( | ||
diff --git a/tools/cli/CMakeLists.txt b/tools/cli/CMakeLists.txt | ||
index 397b428..87e405e 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(fmt CONFIG REQUIRED) | ||
+find_package(cxxopts CONFIG REQUIRED) | ||
target_link_libraries(adaparse PRIVATE cxxopts::cxxopts fmt::fmt) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes are unnecessary. If you pass the correct build flag, CPM will never install a new package and only use the existing packages. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for review. |
||
|
||
if(MSVC OR MINGW) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this patch needs to be restored to ensure these come from their associated ports rather than being effectively vendored. @anonrig I believe you are mistaken. In particular, CPM is not given the
find_package
'd name of these packages, so I don't understand how it could ever resolve them correctly.