From: Daniel Golle Date: Mon, 6 Aug 2018 15:23:46 +0000 (+0200) Subject: set rpath to make bundle-libraries.sh happy X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad816fc5eb9b529e42f7fade601920a68051e532;p=oweals%2Fucert.git set rpath to make bundle-libraries.sh happy Signed-off-by: Daniel Golle --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a44ff23..4c81184 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,11 @@ IF(UCERT_HOST_BUILD) ADD_DEFINITIONS(-DUCERT_HOST_BUILD) ENDIF() +IF(USE_RPATH) +SET(CMAKE_INSTALL_RPATH "${USE_RPATH}") +SET(CMAKE_MACOSX_RPATH 1) +ENDIF() + ADD_EXECUTABLE(ucert ucert.c usign-exec.c) IF(UCERT_FULL) ADD_DEFINITIONS(-DUCERT_FULL)