-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11a95b3
commit 2f03e4f
Showing
4 changed files
with
55 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,34 @@ | ||
# Copyright (C) 2021 KeePassXC Team <[email protected]> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 2 or (at your option) | ||
# version 3 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(Xkbcommon xkbcommon) | ||
# This only works with CMake 3.18 and newer | ||
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.18") | ||
find_package(PkgConfig QUIET) | ||
pkg_check_modules(Xkbcommon xkbcommon) | ||
endif() | ||
|
||
if(NOT Xkbcommon_FOUND) | ||
find_path(Xkbcommon_INCLUDE_DIRS xkbcommon/xkbcommon.h) | ||
find_library(Xkbcommon_LIBRARIES xkbcommon) | ||
|
||
if(Xkbcommon_INCLUDE_DIRS AND Xkbcommon_LIBRARIES) | ||
set(Xkbcommon_FOUND TRUE) | ||
endif() | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Xkbcommon DEFAULT_MSG Xkbcommon_LIBRARIES Xkbcommon_INCLUDE_DIRS) | ||
|
||
mark_as_advanced(Xkbcommon_LIBRARIES Xkbcommon_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters