Commit a052ef89 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: use sym links and not copy, because copy causes two copyis of the library...

BUG: use sym links and not copy, because copy causes two copyis of the library to be loaded into java twice
parent d306e2ec
...@@ -61,8 +61,8 @@ IF(JAVA_COMPILE) ...@@ -61,8 +61,8 @@ IF(JAVA_COMPILE)
SET(src ${LIBRARY_OUTPUT_PATH}/libvtk${kit}Java.dylib) SET(src ${LIBRARY_OUTPUT_PATH}/libvtk${kit}Java.dylib)
SET(tgt ${LIBRARY_OUTPUT_PATH}/libvtk${kit}Java.jnilib) SET(tgt ${LIBRARY_OUTPUT_PATH}/libvtk${kit}Java.jnilib)
ADD_CUSTOM_COMMAND(SOURCE ${src} ADD_CUSTOM_COMMAND(SOURCE ${src}
COMMAND ${CMAKE_COMMAND} COMMAND ln
ARGS -E copy ${src} ${tgt} ARGS -sf ${src} ${tgt}
OUTPUTS ${tgt} OUTPUTS ${tgt}
TARGET VTKJava) TARGET VTKJava)
SET(JAVA_LIBRARIES ${JAVA_LIBRARIES} ${tgt}) SET(JAVA_LIBRARIES ${JAVA_LIBRARIES} ${tgt})
......
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