Dear P.O., On 01.01.2019 21:44, P.O. Jonsson wrote: > I have just reinstalled a Mac with a completely clean Mojave Setup (to avoid > old file ownerships > etc to linger on etc) and am attacking exactly this question. If you can bear > with me a couple of > days I will report what I have found out. With the latest changes & the > daemon-free installation > things have gotten much less complex. But I need some time to be completely > sure on what I have in > mind, ok?
Well, if I can get some hints how to copy the created symbolic link files to the installation lib-directory, then maybe I can supply a patch to the ooRexx project that may help you as well. Here is the macro that creates the symbolic links: # define macro to create symlinks at installation time to allow programs compiled against older versions of Rexx and ooRexx to run macro(rgf_create_symlink target) set(baseName "${CMAKE_SHARED_LIBRARY_PREFIX}${target}") set(targetName "${baseName}${CMAKE_SHARED_LIBRARY_SUFFIX}") message(STATUS "---> macro rgf_create_symlink: $CMAKE_LIBRARY_OUTPUT_DIRECTORY=[${CMAKE_LIBRARY_OUTPUT_DIRECTORY}], $INSTALL_LIB_DIR=[${INSTALL_LIB_DIR}]") message(STATUS "---> macro rgf_create_symlink: target=[${target}]; targetName=[${targetName}] in [${CMAKE_LIBRARY_OUTPUT_DIRECTORY}]") # TODO: define range limits symbolically foreach(loop_var RANGE 2 4) set(linkName "${baseName}.${loop_var}${CMAKE_SHARED_LIBRARY_SUFFIX}") add_custom_command(TARGET ${target} POST_BUILD # does not work # COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} create_symlink ${targetName} ${linkName} # COMMAND ln -sf ${targetName} ${linkName} DEPENDS ${target} COMMAND ${CMAKE_COMMAND} -E chdir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} ln -sf ${targetName} ${linkName} DEPENDS ${target} COMMENT "--> --> [ln -sf ${targetName} ${linkName} DEPENDS ${target}]" ) # does not work # install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E chdir ${INSTALL_LIB_DIR} create_symlink ${targetName} ${linkName})") endforeach(loop_var) endmacro(rgf_create_symlink) Best regards ---rony
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel