[ned14-internal-quickcpplib] fix install (#45258)

Co-authored-by: jyu49 <yu_jack@apple.com>
This commit is contained in:
Jack·Boos·Yu 2025-05-16 03:12:28 +08:00 committed by GitHub
parent aa8adad7a1
commit 6155b8437d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,31 @@
diff --git a/cmakelib/QuickCppLibUtils.cmake b/cmakelib/QuickCppLibUtils.cmake
index 3fdd0e8..0f6a272 100644
--- a/cmakelib/QuickCppLibUtils.cmake
+++ b/cmakelib/QuickCppLibUtils.cmake
@@ -53,24 +53,8 @@ endfunction()
# Emulate list(FILTER list INCLUDE|EXCLUDE REGEX regex) on cmake < 3.6
function(list_filter listname op regexqualifer regex)
- if(CMAKE_VERSION VERSION_GREATER 3.59)
- list(FILTER ${ARGV})
- else()
- set(out)
- foreach(item ${${listname}})
- string(REGEX MATCH "${regex}" match ${item})
- if("${op}" STREQUAL "INCLUDE")
- if(match)
- list(APPEND out ${item})
- endif()
- else()
- if(NOT match)
- list(APPEND out ${item})
- endif()
- endif()
- endforeach()
- set(${listname} ${out} PARENT_SCOPE)
- endif()
+ list(FILTER ${ARGV})
+ set(${listname} ${${listname}} PARENT_SCOPE)
endfunction()
# Escape a string into a regex matching that string

View File

@ -37,6 +37,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
quicklib-depheaders.patch
fix-list_filter.patch
)
vcpkg_from_github(

View File

@ -1,6 +1,7 @@
{
"name": "ned14-internal-quickcpplib",
"version-date": "2023-11-22",
"port-version": 1,
"maintainers": [
"Niall Douglas <s_github@nedprod.com>",
"Henrik Gaßmann <henrik@gassmann.onl>"

View File

@ -6526,7 +6526,7 @@
},
"ned14-internal-quickcpplib": {
"baseline": "2023-11-22",
"port-version": 0
"port-version": 1
},
"neon2sse": {
"baseline": "2024-11-24",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3ada109fadc11854055e17baf513f1df776dd73b",
"version-date": "2023-11-22",
"port-version": 1
},
{
"git-tree": "fd29cd78a6d8aa5689620b077e062c8844d27871",
"version-date": "2023-11-22",