[cmake] improve PATH support
@@ -40,8 +40,13 @@ IF (PathFerris_LIBRARY)
SET(HAVE_PATHFERRIS TRUE)
endif()
IF (NOT PathFerris_FIND_QUIETLY)
+ IF(${PathFerris_LIBRARY} MATCHES ".*-NOTFOUND")
+ MESSAGE(STATUS "Could not find library named path${PathFerris_VERSION} for PathFerris support")
+ MESSAGE(STATUS "Try setting either PathFerris_DIR or (DY)LD_LIBRARY_PATH to the directory where the library is")
+ ELSE()
MESSAGE(STATUS "Found PathFerris: ${PathFerris_LIBRARY}")
MESSAGE(STATUS "PathFerris_LIBRARIES: ${PathFerris_LIBRARIES}")
+ ENDIF()
ENDIF (NOT PathFerris_FIND_QUIETLY)
# Final check :
