Updated build file

This commit is contained in:
Lubos Dolezel 2016-02-10 22:28:25 +01:00
parent 36889aec64
commit 95f2c4d56a

View File

@ -23,11 +23,11 @@ set(cfnetwork_sources
src/CFSocketStream.c
)
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib${SUFFIX}/darling")
SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/darling")
SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
add_library(cfnetwork SHARED ${cfnetwork_sources})
target_link_libraries(cfnetwork CFFExtra)
install(TARGETS cfnetwork DESTINATION lib${SUFFIX}/darling)
install(TARGETS cfnetwork DESTINATION ${CMAKE_INSTALL_LIBDIR}/darling)