Commit dc39d71b authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Use .so for shared libs on Mac for Python, but create symlinks to .dylib for

dlopen (CORALCOOL-2887), as previously done for modules (CORALCOOL-2819).


git-svn-id: file:///git/lcgcool.svndb/cool/trunk@19961 4525493e-7705-40b1-a816-d608a930855b
parent e4bd5a22
......@@ -27,6 +27,17 @@ macro(CORALSharedLib)
install(TARGETS lcg_${package} DESTINATION lib)
IF(CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin") # See CORALCOOL-2819 and -2887
set_target_properties(lcg_${package} PROPERTIES SUFFIX ".so") # DEFAULT!
get_property(lcg_${package}_loc TARGET lcg_${package} PROPERTY LOCATION)
get_filename_component(lcg_${package}_we ${lcg_${package}_loc} NAME_WE)
add_custom_command(
TARGET lcg_${package} POST_BUILD
COMMAND ln -sf $<TARGET_FILE_NAME:lcg_${package}> $<TARGET_FILE_DIR:lcg_${package}>/${lcg_${package}_we}.dylib
)
install(PROGRAMS $<TARGET_FILE_DIR:lcg_${package}>/${lcg_${package}_we}.dylib DESTINATION lib)
ENDIF()
include(CORALConfigScripts)
if(NOT ARG_NO_HEADERS)
# Copy and install headers into the build and install areas
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment