Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWayland Server
Commits
8b97f47e
Commit
8b97f47e
authored
Aug 27, 2020
by
Vlad Zahorodnii
Browse files
Switch to upstream version of FindWaylandProtocols
FindWaylandProtocols has been upstreamed to ECM.
parent
8bc82279
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
8b97f47e
...
...
@@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# ECM setup
include
(
FeatureSummary
)
find_package
(
ECM
${
KF5_MIN_VERSION
}
NO_MODULE REQUIRED
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
${
CMAKE_SOURCE_DIR
}
/cmake/Modules
)
set
(
CMAKE_MODULE_PATH
${
ECM_MODULE_PATH
}
)
include
(
CheckIncludeFile
)
include
(
CMakeFindFrameworks
)
...
...
cmake/Modules/FindWaylandProtocols.cmake
deleted
100644 → 0
View file @
8bc82279
#.rst:
# FindWaylandProtocols
# -------
#
# Try to find wayland-protocols on a Unix system.
#
# This will define the following variables:
#
# ``WaylandProtocols_FOUND``
# True if (the requested version of) wayland-protocols is available
# ``WaylandProtocols_VERSION``
# The version of wayland-protocols
# ``WaylandProtocols_DATADIR``
# The wayland protocols data directory
#=============================================================================
# SPDX-FileCopyrightText: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
#
# SPDX-License-Identifier: BSD-3-Clause
#=============================================================================
find_package
(
PkgConfig
)
pkg_check_modules
(
PKG_wayland_protocols QUIET wayland-protocols
)
set
(
WaylandProtocols_VERSION
${
PKG_wayland_protocols_VERSION
}
)
pkg_get_variable
(
WaylandProtocols_DATADIR wayland-protocols pkgdatadir
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
WaylandProtocols
FOUND_VAR WaylandProtocols_FOUND
REQUIRED_VARS WaylandProtocols_DATADIR
VERSION_VAR WaylandProtocols_VERSION
)
include
(
FeatureSummary
)
set_package_properties
(
WaylandProtocols PROPERTIES
DESCRIPTION
"Specifications of extended Wayland protocols"
URL
"https://wayland.freedesktop.org/"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment