mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
e7f16c6f2c
HDFFV-10805 Add ONLY_SHARED_LIBS option and prefer shared over static HDFFV-10803 Update FindSZIP.cmake find module Remove unneeded modules and update java modules
29 lines
780 B
CMake
29 lines
780 B
CMake
# Distributed under the OSI-approved BSD 3-Clause License. See https://cmake.org/licensing for details.
|
|
|
|
#[=======================================================================[.rst:
|
|
UseJavaSymlinks
|
|
---------------
|
|
|
|
|
|
|
|
|
|
|
|
Helper script for UseJava.cmake
|
|
#]=======================================================================]
|
|
|
|
if (UNIX AND _JAVA_TARGET_OUTPUT_LINK)
|
|
if (_JAVA_TARGET_OUTPUT_NAME)
|
|
find_program(LN_EXECUTABLE
|
|
NAMES
|
|
ln
|
|
)
|
|
|
|
execute_process(
|
|
COMMAND ${LN_EXECUTABLE} -sf "${_JAVA_TARGET_OUTPUT_NAME}" "${_JAVA_TARGET_OUTPUT_LINK}"
|
|
WORKING_DIRECTORY ${_JAVA_TARGET_DIR}
|
|
)
|
|
else ()
|
|
message(SEND_ERROR "FATAL: Can't find _JAVA_TARGET_OUTPUT_NAME")
|
|
endif ()
|
|
endif ()
|