summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorManuel Bentele2021-08-26 13:33:25 +0200
committerManuel Bentele2021-08-26 13:33:25 +0200
commit079646f670fe95a95da08f51e9a86d4d1a4e0e32 (patch)
treef00f0970059f1063b8837e50f11cad6af8c3f1c1 /cmake
parentRead version from lightweight (non-annotated) tags, too (diff)
downloadxloop-079646f670fe95a95da08f51e9a86d4d1a4e0e32.tar.gz
xloop-079646f670fe95a95da08f51e9a86d4d1a4e0e32.tar.xz
xloop-079646f670fe95a95da08f51e9a86d4d1a4e0e32.zip
[BUILD] Change CMake search for the existence of Linux headers
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindKernelHeaders.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/FindKernelHeaders.cmake b/cmake/FindKernelHeaders.cmake
index bd2e52d..d3ee0d9 100644
--- a/cmake/FindKernelHeaders.cmake
+++ b/cmake/FindKernelHeaders.cmake
@@ -17,7 +17,8 @@ endif(NOT KERNEL_INSTALL_DIR)
# find the Linux kernel headers from given KERNEL_BUILD_DIR
find_path(KernelHeaders_INCLUDE_DIR
- NAMES linux/user.h
+ NAMES config/clang/version.h
+ config/gcc/version.h
PATHS ${KERNEL_BUILD_DIR}/include)
# get Linux kernel headers version