From cdf5958f5178078c32ce3baafe9e142fbe4f40fb Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Tue, 30 Nov 2021 10:36:02 +0100 Subject: [BUILD] Fix issue in CMake kernel header check --- cmake/FindKernelHeaders.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmake') 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}) -- cgit v1.2.3-55-g7522