From ad816fc5eb9b529e42f7fade601920a68051e532 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 6 Aug 2018 17:23:46 +0200 Subject: [PATCH] set rpath to make bundle-libraries.sh happy Signed-off-by: Daniel Golle --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.25.1