Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions ports/ned14-internal-quickcpplib/fix-list_filter.patch
Original file line number Diff line number Diff line change
@@ -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)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this port requires cmake version > 3.9, the else part is not needed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be enough to fix this single line. There is no 3.59.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to if(0). Only the else branch has set(... PARENT_SCOPE).
(Of course nobody noticed before CMake 4.0...)

- 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
1 change: 1 addition & 0 deletions ports/ned14-internal-quickcpplib/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
quicklib-depheaders.patch
fix-list_filter.patch
)

vcpkg_from_github(
Expand Down
1 change: 1 addition & 0 deletions ports/ned14-internal-quickcpplib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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>"
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6498,7 +6498,7 @@
},
"ned14-internal-quickcpplib": {
"baseline": "2023-11-22",
"port-version": 0
"port-version": 1
},
"neon2sse": {
"baseline": "2024-11-24",
Expand Down
5 changes: 5 additions & 0 deletions versions/n-/ned14-internal-quickcpplib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3ada109fadc11854055e17baf513f1df776dd73b",
"version-date": "2023-11-22",
"port-version": 1
},
{
"git-tree": "fd29cd78a6d8aa5689620b077e062c8844d27871",
"version-date": "2023-11-22",
Expand Down