mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
Meta/CMake: Use simple string match to find relevant vcpkg triplets
Previously, the build would fail if the CMake source directory contained regex special characters.
This commit is contained in:
parent
1e9e2b6564
commit
00ed797627
Notes:
github-actions[bot]
2025-01-11 22:19:07 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/00ed797627e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3220
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ if (NOT DEFINED CACHE{VCPKG_TARGET_TRIPLET} AND NOT DEFINED CACHE{VCPKG_HOST_TRI
|
|||
endif()
|
||||
|
||||
# And then, only tweak settings if the triplets are ours
|
||||
if (NOT VCPKG_OVERLAY_TRIPLETS MATCHES "^${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
string(FIND "${VCPKG_OVERLAY_TRIPLETS}" "${CMAKE_CURRENT_SOURCE_DIR}" VCPKG_OVERLAY_TRIPLETS_MATCH)
|
||||
if (VCPKG_OVERLAY_TRIPLETS_MATCH EQUAL -1)
|
||||
return()
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue