Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Add RPATH to module lib

Ivan Yossi3c045538b33f
diff --git a/qmlmodules/components/CMakeLists.txt b/qmlmodules/components/CMakeLists.txt
index 060775975e..2811efa6f9 100644
--- a/qmlmodules/components/CMakeLists.txt
+++ b/qmlmodules/components/CMakeLists.txt
@@ -139,6 +139,17 @@ else ()
)
endif ()
+
+if (APPLE)
+ # kritaqmlmodules lacks an RPATH which causes macdeployqt to ERROR
+ set_target_properties(kritaqmlcomponents PROPERTIES INSTALL_RPATH "@loader_path/.;
+ @executable_path/../Frameworks;
+ @loader_path/../../../lib;
+ @loader_path/../../lib;
+ @loader_path/../../../../lib"
+ )
+endif()
+
ecm_finalize_qml_module(kritaqmlcomponents DESTINATION ${KDE_INSTALL_QMLDIR})
# Note: we don't need ecm_generate_qmltypes, in Qt6 it is autogenerated