mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 09:49:21 +00:00
CMake: Use cmake_path to check if vcpkg triplets are ours
This makes the check work with possibly-normalized windows paths
This commit is contained in:
parent
b4cc34d0ae
commit
ffd946d47d
Notes:
github-actions[bot]
2025-06-22 19:34:41 +00:00
Author: https://github.com/ADKaster
Commit: ffd946d47d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5164
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,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
|
||||||
string(FIND "${VCPKG_OVERLAY_TRIPLETS}" "${CMAKE_CURRENT_SOURCE_DIR}" VCPKG_OVERLAY_TRIPLETS_MATCH)
|
cmake_path(IS_PREFIX CMAKE_CURRENT_SOURCE_DIR "${VCPKG_OVERLAY_TRIPLETS}" NORMALIZE TRIPLET_IS_OURS)
|
||||||
if (VCPKG_OVERLAY_TRIPLETS_MATCH EQUAL -1)
|
if (NOT TRIPLET_IS_OURS)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue