summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorManuel Bentele2021-08-26 13:18:11 +0200
committerManuel Bentele2021-08-26 13:18:11 +0200
commit37ac48f36ff5616d86af9fa1678ba5323ee014aa (patch)
tree42a7d2cf34c222995e712963cd1605d4ece3c120 /cmake
parent[BUILD] Build release on Ubuntu 18.04 to support older glibc (diff)
downloaddnbd3-37ac48f36ff5616d86af9fa1678ba5323ee014aa.tar.gz
dnbd3-37ac48f36ff5616d86af9fa1678ba5323ee014aa.tar.xz
dnbd3-37ac48f36ff5616d86af9fa1678ba5323ee014aa.zip
[BUILD] Change CMake search for the existence of Linux headersv3.10.1
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..3da7316 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