2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2013-10-15 19:17:36 +04:00
|
|
|
#.rst:
|
|
|
|
# UseJavaSymlinks
|
|
|
|
# ---------------
|
|
|
|
#
|
|
|
|
#
|
2011-02-10 23:10:22 +03:00
|
|
|
#
|
|
|
|
#
|
2013-10-15 19:17:36 +04:00
|
|
|
#
|
|
|
|
# Helper script for UseJava.cmake
|
2011-02-10 23:10:22 +03:00
|
|
|
|
|
|
|
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}
|
|
|
|
)
|
2012-08-13 21:50:14 +04:00
|
|
|
else ()
|
2011-02-10 23:10:22 +03:00
|
|
|
message(SEND_ERROR "FATAL: Can't find _JAVA_TARGET_OUTPUT_NAME")
|
2012-08-13 21:50:14 +04:00
|
|
|
endif ()
|
|
|
|
endif ()
|