Skip to content

Commit 895a239

Browse files
committed
COMP: In CMakeLists.txt - Added target property INSTALL_NAME_DIR
That should solve linkage error on Mac when the project is used in a superbuild setup See http://blog.onesadcookie.com/2008/01/installname-magic.html
1 parent 2cf3dc9 commit 895a239

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ add_library(PythonQt SHARED
192192
${gen_qrc_sources}
193193
)
194194

195+
#
196+
# That should solve linkage error on Mac when the project is used in a superbuild setup
197+
# See http://blog.onesadcookie.com/2008/01/installname-magic.html
198+
#
199+
set_target_properties(PythonQt PROPERTIES
200+
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
201+
)
202+
195203
target_link_libraries(PythonQt
196204
${PYTHON_LIBRARY}
197205
${QT_LIBRARIES}

0 commit comments

Comments
 (0)