diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2017-04-06 02:42:25 +0300 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2017-04-06 02:42:25 +0300 |
| commit | 458edf4230f4365113cfff0e3d68b3b3ad1e5ab3 (patch) | |
| tree | d160212842d3e6bdf00f5fa2f958db732defefec /CMakeLists.txt | |
| parent | bed22342fcdf53446d4a0121cbfaf9f2c5681f8e (diff) | |
Add libcap check to CMake
- Moved ``<sys/capability.h>`` include inside `__linux__` guard,
because all uses are similarly guarded.
- <sys/capability.h> is part of an optional devel package, at least
in fedora. CMake now explicitly checks that libcap devel files
are available.
- Added libcap to the list of install packages in .travis.yml, to
make the dependency explicit. travis-ci installs the package by
default, which is why this hasn't surfaced previously.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ec2c73a2..017b0994 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,7 @@ find_package(GdkPixbuf) find_package(PAM) find_package(LibInput REQUIRED) +find_package(Libcap REQUIRED) if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) find_package(EpollShim REQUIRED) |
