mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00: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: 00ed797627
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()
|
endif()
|
||||||
|
|
||||||
# And then, only tweak settings if the triplets are ours
|
# 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()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue