Commit 3ef91eeb authored by Vladimir Stoiakin's avatar Vladimir Stoiakin Committed by Sébastien Blin

build: search for libjami also

Change-Id: I5a78e77d34ce19372e3785f93c997274e6a5c647
parent db943766
......@@ -25,6 +25,15 @@ FIND_LIBRARY(ring_BIN NAMES ring
PATHS ${CMAKE_INSTALL_PREFIX}/bin
)
IF(${ring_BIN} MATCHES "")
FIND_LIBRARY(ring_BIN NAMES jami
PATHS ${RING_BUILD_DIR}/.libs
PATHS ${CMAKE_INSTALL_PREFIX}/lib
PATHS ${CMAKE_INSTALL_PREFIX}/libexec
PATHS ${CMAKE_INSTALL_PREFIX}/bin
)
ENDIF()
# Try a static version too
IF(${ring_BIN} MATCHES "")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.lib")
......@@ -35,6 +44,14 @@ IF(${ring_BIN} MATCHES "")
PATHS ${CMAKE_INSTALL_PREFIX}/libexec
)
IF(${ring_BIN} MATCHES "")
FIND_LIBRARY(ring_BIN NAMES jami
PATHS ${RING_BUILD_DIR}/.libs
PATHS ${CMAKE_INSTALL_PREFIX}/lib
PATHS ${CMAKE_INSTALL_PREFIX}/libexec
)
ENDIF()
IF(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows")
ADD_DEFINITIONS(-fPIC)
ENDIF()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment