diff options
author | Manuel Bentele | 2021-11-30 10:36:02 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-11-30 14:12:33 +0100 |
commit | cdf5958f5178078c32ce3baafe9e142fbe4f40fb (patch) | |
tree | b34aff804a6688523a7300d708dd0ca4d2407b2e | |
parent | [KERNEL] Fix wurstfingered missing ; (diff) | |
download | dnbd3-cdf5958f5178078c32ce3baafe9e142fbe4f40fb.tar.gz dnbd3-cdf5958f5178078c32ce3baafe9e142fbe4f40fb.tar.xz dnbd3-cdf5958f5178078c32ce3baafe9e142fbe4f40fb.zip |
[BUILD] Fix issue in CMake kernel header check
-rw-r--r-- | cmake/FindKernelHeaders.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/FindKernelHeaders.cmake b/cmake/FindKernelHeaders.cmake index 3da7316..53597e5 100644 --- a/cmake/FindKernelHeaders.cmake +++ b/cmake/FindKernelHeaders.cmake @@ -17,9 +17,10 @@ endif(NOT KERNEL_INSTALL_DIR) # find the Linux kernel headers from given KERNEL_BUILD_DIR find_path(KernelHeaders_INCLUDE_DIR - NAMES config/clang/version.h - config/gcc/version.h - PATHS ${KERNEL_BUILD_DIR}/include) + NAMES linux/kernel.h + linux/module.h + PATHS ${KERNEL_BUILD_DIR}/include + NO_DEFAULT_PATH) # get Linux kernel headers version string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" KernelHeaders_VERSION ${KernelHeaders_INCLUDE_DIR}) |