1Subject: [PATCH] winpr-makecert: Build with install RPATH
2
3As we are installing "winpr-makecert" manually, we do want
4to refer to the library in DESTDIR, not the one resting in
5the build tree.
6
7Update it for 2.0.0.
8
9Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
10Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
11---
12Upstream-Status: Pending
13
14 winpr/tools/makecert-cli/CMakeLists.txt | 3 +++
15 1 file changed, 3 insertions(+)
16
17Index: git/winpr/tools/makecert-cli/CMakeLists.txt
18===================================================================
19--- git.orig/winpr/tools/makecert-cli/CMakeLists.txt
20+++ git/winpr/tools/makecert-cli/CMakeLists.txt
21@@ -44,6 +44,9 @@ set(${MODULE_PREFIX}_LIBS winpr-tools)
22
23 target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS} winpr)
24
25+set_target_properties(${MODULE_NAME} PROPERTIES
26+       BUILD_WITH_INSTALL_RPATH 1)
27+
28 set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools")
29
30 install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT tools EXPORT WinPRTargets)
31