From eabe28c423e45d25510a9962a27174f160b78b55 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sat, 22 Apr 2023 01:17:01 -0500 Subject: [PATCH] Fixing DT_RUNPATH for Linux targets --- scwx-qt/scwx-qt.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scwx-qt/scwx-qt.cmake b/scwx-qt/scwx-qt.cmake index 092475fa..641f9abb 100644 --- a/scwx-qt/scwx-qt.cmake +++ b/scwx-qt/scwx-qt.cmake @@ -385,7 +385,8 @@ target_link_libraries(supercell-wx PRIVATE scwx-qt wxdata) # Set DT_RUNPATH for Linux targets -set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib") +set_target_properties(qmaplibregl PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib") +set_target_properties(supercell-wx PROPERTIES INSTALL_RPATH "\$ORIGIN/../lib") install(TARGETS supercell-wx qmaplibregl