We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2e5b73 commit 77fd5c5Copy full SHA for 77fd5c5
CMakeLists.txt
@@ -11,6 +11,7 @@ set(CORE_WIDGETS_ADDON "nodegui_core")
11
12
project(${CORE_WIDGETS_ADDON})
13
14
+set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
15
16
# Note: CMake+moc also use this list when finding files which `moc` applied.
17
@@ -265,6 +266,7 @@ if (UNIX AND NOT APPLE)
265
266
endif()
267
268
if (APPLE)
269
+ set(CMAKE_MACOSX_RPATH ON)
270
file(RELATIVE_PATH QT_LIBRARY_REL_PATH "${CMAKE_BINARY_DIR}/Release" "${QT_CMAKE_HOME_DIR}/../..")
271
set_target_properties(${CORE_WIDGETS_ADDON} PROPERTIES INSTALL_RPATH "@loader_path/${QT_LIBRARY_REL_PATH}")
272
0 commit comments