Fix drogon_ctl runtime error when compiling drogon to shared library (#397)
Fix for #395
This commit is contained in:
parent
06bf158676
commit
98ab826cfc
|
@ -28,10 +28,10 @@ set(INSTALL_DROGON_CMAKE_DIR
|
|||
|
||||
if(BUILD_DROGON_SHARED)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||||
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${INSTALL_LIB_DIR}"
|
||||
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}"
|
||||
isSystemDir)
|
||||
if("${isSystemDir}" STREQUAL "-1")
|
||||
set(CMAKE_INSTALL_RPATH "${INSTALL_LIB_DIR}")
|
||||
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}")
|
||||
endif("${isSystemDir}" STREQUAL "-1")
|
||||
add_library(${PROJECT_NAME} SHARED)
|
||||
else(BUILD_DROGON_SHARED)
|
||||
|
|
Loading…
Reference in New Issue