mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Jelle Raaijmakers
parent
1e9e2b6564
commit
00ed797627
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user