diff options
author | fuzzard <fuzzard@users.noreply.github.com> | 2023-09-14 10:27:38 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 10:27:38 +1000 |
commit | fb67e7c258180cd045dbae6ea614ea43beada187 (patch) | |
tree | fa9c09936951c5053fb60b6da43802d0fe569ec8 /cmake/modules/FindWaylandProtocolsWebOS.cmake | |
parent | 7df905b77bb4a8aeb7f31b42368ac418e849660f (diff) | |
parent | 78137d61168f0a8476392ce553ba61daa3a06d8c (diff) |
Merge pull request #23748 from fuzzard/cmake_target2
[cmake] Migrate more modules to TARGET usage
Diffstat (limited to 'cmake/modules/FindWaylandProtocolsWebOS.cmake')
-rw-r--r-- | cmake/modules/FindWaylandProtocolsWebOS.cmake | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/cmake/modules/FindWaylandProtocolsWebOS.cmake b/cmake/modules/FindWaylandProtocolsWebOS.cmake index 979c34d660..041ea2bffa 100644 --- a/cmake/modules/FindWaylandProtocolsWebOS.cmake +++ b/cmake/modules/FindWaylandProtocolsWebOS.cmake @@ -4,24 +4,15 @@ # # This will define the following variables:: # -# WAYLANDPROTOCOLSWEBOS_FOUND - systm has wayland-webos-client # WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR - directory containing the additional webOS Wayland protocols # from the webos-wayland-extensions package -if(PKG_CONFIG_FOUND) - pkg_check_modules(PC_WAYLAND_WEBOS_CLIENT wayland-webos-client>=1.0.0) -endif() -find_path(WAYLAND_PROTOCOLS_WEBOS_PROTOCOLDIR NAMES wayland-webos/webos-shell.xml - PATHS ${DEPENDS_PATH}/share) +find_path(WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR NAMES webos-shell.xml + PATH_SUFFIXES wayland-webos + PATHS ${DEPENDS_PATH}/share + REQUIRED) -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(WaylandProtocolsWebOS - REQUIRED_VARS WAYLAND_PROTOCOLS_WEBOS_PROTOCOLDIR - VERSION_VAR WAYLAND_WEBOS_SERVER_VERSION) - -if(WAYLANDPROTOCOLSWEBOS_FOUND) - # Promote to cache variables so all code can access it - set(WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR "${WAYLAND_PROTOCOLS_WEBOS_PROTOCOLDIR}/wayland-webos" CACHE INTERNAL "") -endif() +include(FindPackageMessage) +find_package_message(WaylandProtocolsWebOS "Found WaylandProtocols-WebOS: ${WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR}" "[${WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR}]") mark_as_advanced(WAYLANDPROTOCOLSWEBOS_PROTOCOLSDIR) |