From 66a04fb22c6a68dd0b6468a3db58858a33f52352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Wed, 25 Mar 2020 14:59:49 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@980 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- cmake/FindPIP.cmake | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)