summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorManuel Bentele2020-10-27 15:07:28 +0100
committerManuel Bentele2020-10-27 15:07:28 +0100
commit9742cd370567141eda76db64ecec4e4316f08ea3 (patch)
treeac8db24e9fe3a275c4384a479435ae74b8c2d2bc /cmake
parent[BUILD] fix broken version header packaging for source packages (diff)
downloaddnbd3-9742cd370567141eda76db64ecec4e4316f08ea3.tar.gz
dnbd3-9742cd370567141eda76db64ecec4e4316f08ea3.tar.xz
dnbd3-9742cd370567141eda76db64ecec4e4316f08ea3.zip
[BUILD] do not print verbose CMake messages in unsupported CMake versionsv2.3
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindKernelHeaders.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmake/FindKernelHeaders.cmake b/cmake/FindKernelHeaders.cmake
index 60d2380..bd2e52d 100644
--- a/cmake/FindKernelHeaders.cmake
+++ b/cmake/FindKernelHeaders.cmake
@@ -38,8 +38,10 @@ endif(KernelHeaders_FOUND)
mark_as_advanced(KernelHeaders_INCLUDE_DIR KernelHeaders_MODULE_INSTALL_DIR)
# print found information
-message(VERBOSE "KERNEL_BUILD_DIR: ${KERNEL_BUILD_DIR}")
-message(VERBOSE "KERNEL_INSTALL_DIR: ${KERNEL_INSTALL_DIR}")
-message(VERBOSE "KernelHeaders_FOUND: ${KernelHeaders_FOUND}")
-message(VERBOSE "KernelHeaders_VERSION: ${KernelHeaders_VERSION}")
-message(VERBOSE "KernelHeaders_INCLUDE_DIRS: ${KernelHeaders_INCLUDE_DIRS}")
+if(${CMAKE_VERSION} VERSION_GREATER "3.15.0")
+ message(VERBOSE "KERNEL_BUILD_DIR: ${KERNEL_BUILD_DIR}")
+ message(VERBOSE "KERNEL_INSTALL_DIR: ${KERNEL_INSTALL_DIR}")
+ message(VERBOSE "KernelHeaders_FOUND: ${KernelHeaders_FOUND}")
+ message(VERBOSE "KernelHeaders_VERSION: ${KernelHeaders_VERSION}")
+ message(VERBOSE "KernelHeaders_INCLUDE_DIRS: ${KernelHeaders_INCLUDE_DIRS}")
+endif(${CMAKE_VERSION} VERSION_GREATER "3.15.0")