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 /cmake/FindLibncurses.cmake | |
parent | Fix broken version header packaging for source packages (diff) | |
download | xloop-3a468e45e0d765b210384f5ee61000f3ca10b7f3.tar.gz xloop-3a468e45e0d765b210384f5ee61000f3ca10b7f3.tar.xz xloop-3a468e45e0d765b210384f5ee61000f3ca10b7f3.zip |
Do not print verbose CMake messages in unsupported CMake versionsv1.0
Diffstat (limited to 'cmake/FindLibncurses.cmake')
-rw-r--r-- | cmake/FindLibncurses.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
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") |