diff options
author | Manuel Bentele | 2020-10-27 15:04:48 +0100 |
---|---|---|
committer | Manuel Bentele | 2020-10-27 15:04:48 +0100 |
commit | bf166344f672892d4487e57f286faaa092a54e52 (patch) | |
tree | 0003b407c4adddae3d7dccfd5c5c5276c150485f | |
parent | Fix broken version header packaging for source packages (diff) | |
download | xloop-1.0.tar.gz xloop-1.0.tar.xz xloop-1.0.zip |
Do not print verbose CMake messages in unsupported CMake versionsv1.0
-rw-r--r-- | cmake/FindKernelHeaders.cmake | 12 | ||||
-rw-r--r-- | cmake/FindLibcap.cmake | 12 | ||||
-rw-r--r-- | cmake/FindLibncurses.cmake | 12 |
3 files changed, 21 insertions, 15 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") diff --git a/cmake/FindLibcap.cmake b/cmake/FindLibcap.cmake index 8529426..b575c16 100644 --- a/cmake/FindLibcap.cmake +++ b/cmake/FindLibcap.cmake @@ -42,8 +42,10 @@ if(Libcap_FOUND) endif(Libcap_FOUND) # print found information -message(VERBOSE "Libcap_FOUND: ${Libcap_FOUND}") -message(VERBOSE "Libcap_VERSION: ${Libcap_VERSION}") -message(VERBOSE "Libcap_INCLUDE_DIRS: ${Libcap_INCLUDE_DIRS}") -message(VERBOSE "Libcap_COMPILE_OPTIONS: ${Libcap_COMPILE_OPTIONS}") -message(VERBOSE "Libcap_LIBRARIES: ${Libcap_LIBRARIES}") +if(${CMAKE_VERSION} VERSION_GREATER "3.15.0") + message(VERBOSE "Libcap_FOUND: ${Libcap_FOUND}") + message(VERBOSE "Libcap_VERSION: ${Libcap_VERSION}") + message(VERBOSE "Libcap_INCLUDE_DIRS: ${Libcap_INCLUDE_DIRS}") + message(VERBOSE "Libcap_COMPILE_OPTIONS: ${Libcap_COMPILE_OPTIONS}") + message(VERBOSE "Libcap_LIBRARIES: ${Libcap_LIBRARIES}") +endif(${CMAKE_VERSION} VERSION_GREATER "3.15.0") diff --git a/cmake/FindLibncurses.cmake b/cmake/FindLibncurses.cmake index 2589ff0..57234a1 100644 --- a/cmake/FindLibncurses.cmake +++ b/cmake/FindLibncurses.cmake @@ -47,8 +47,10 @@ if(Libncurses_FOUND) endif(Libncurses_FOUND) # print found information -message(VERBOSE "Libncurses_FOUND: ${Libncurses_FOUND}") -message(VERBOSE "Libncurses_VERSION: ${Libncurses_VERSION}") -message(VERBOSE "Libncurses_INCLUDE_DIRS: ${Libncurses_INCLUDE_DIRS}") -message(VERBOSE "Libncurses_COMPILE_OPTIONS: ${Libncurses_COMPILE_OPTIONS}") -message(VERBOSE "Libncurses_LIBRARIES: ${Libncurses_LIBRARIES}") +if(${CMAKE_VERSION} VERSION_GREATER "3.15.0") + message(VERBOSE "Libncurses_FOUND: ${Libncurses_FOUND}") + message(VERBOSE "Libncurses_VERSION: ${Libncurses_VERSION}") + message(VERBOSE "Libncurses_INCLUDE_DIRS: ${Libncurses_INCLUDE_DIRS}") + message(VERBOSE "Libncurses_COMPILE_OPTIONS: ${Libncurses_COMPILE_OPTIONS}") + message(VERBOSE "Libncurses_LIBRARIES: ${Libncurses_LIBRARIES}") +endif(${CMAKE_VERSION} VERSION_GREATER "3.15.0") |