summaryrefslogtreecommitdiffstats
path: root/cmake/FindLibcap.cmake
diff options
context:
space:
mode:
authorManuel Bentele2020-10-27 15:04:48 +0100
committerManuel Bentele2020-10-27 15:04:48 +0100
commitbf166344f672892d4487e57f286faaa092a54e52 (patch)
tree0003b407c4adddae3d7dccfd5c5c5276c150485f /cmake/FindLibcap.cmake
parentFix broken version header packaging for source packages (diff)
downloadxloop-1.0.tar.gz
xloop-1.0.tar.xz
xloop-1.0.zip
Do not print verbose CMake messages in unsupported CMake versionsv1.0
Diffstat (limited to 'cmake/FindLibcap.cmake')
-rw-r--r--cmake/FindLibcap.cmake12
1 files changed, 7 insertions, 5 deletions
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")