diff --git a/cmake/find/FindCerf.cmake b/cmake/find/FindCerf.cmake index 23f554b1e48a6b21466cac2c46e44ed16d294083..6412aa9211548b26765911c6d28a089e94451f8c 100644 --- a/cmake/find/FindCerf.cmake +++ b/cmake/find/FindCerf.cmake @@ -57,7 +57,6 @@ else() endif() endif() - # If still not found, then check whether it is ultimately required or not. if(NOT Cerf_FOUND) message(STATUS "libcerf: FOUND=${Cerf_FOUND}, VERSION=${Cerf_VERSION}, " @@ -65,15 +64,12 @@ if(NOT Cerf_FOUND) if(${Cerf_ULTIMATELY_REQUIRED}) message(FATAL_ERROR "Found neither C nor C++ version of cerf") - else() - message(STATUS "Found neither C nor C++ version of cerf") endif() - + + message(STATUS "Found neither C nor C++ version of cerf") return() endif() - - if(Cerf_IS_CPP) message(STATUS "Found libcerf, language=CPP, version=${Cerf_VERSION}, lib=${Cerf_LIBRARIES}," " include_dir=${Cerf_INCLUDE_DIR}.")