diff --git a/cmake/FindPIP.cmake b/cmake/FindPIP.cmake index b1bfe07f..bc850054 100644 --- a/cmake/FindPIP.cmake +++ b/cmake/FindPIP.cmake @@ -55,6 +55,10 @@ else() endif() find_program(PIP_CMG pip_cmg HINTS ${_PIP_BINDIR} ${_PIP_FP_DP}) find_program(PIP_RC pip_rc HINTS ${_PIP_BINDIR} ${_PIP_FP_DP}) +if (NOT PIP_LIBRARY) + message(FATAL_ERROR "Can`t find PIP library!") +endif() +set(_PIP_LIBRARY_PATH_ "${PIP_LIBRARY}") if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") find_library(DL_LIBRARY dl) list(APPEND PIP_LIBRARY ${DL_LIBRARY}) @@ -77,10 +81,10 @@ if(NOT PIP_VERSION) set(PIP_VERSION ${_VERSION} CACHE STRING "VERSION") if (NOT _PIP_MSG) set(_PIP_MSG 1 CACHE BOOL "msg_pip" FORCE) - message(STATUS "Found PIP version ${PIP_VERSION} (${PIP_LIBRARY})") + message(STATUS "Found PIP: ${_PIP_LIBRARY_PATH_} (found version \"${PIP_VERSION}\")") endif() else() - message(FATAL_ERROR "PIP not found") + message(FATAL_ERROR "Can`t find PIP version file!") endif() endif() if(PIP_FIND_VERSION VERSION_GREATER PIP_VERSION)