You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
627 B
21 lines
627 B
8 years ago
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
||
|
|
||
3 years ago
|
# Helper script for UseJava.cmake
|
||
13 years ago
|
|
||
|
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}
|
||
|
)
|
||
12 years ago
|
else ()
|
||
13 years ago
|
message(SEND_ERROR "FATAL: Can't find _JAVA_TARGET_OUTPUT_NAME")
|
||
12 years ago
|
endif ()
|
||
|
endif ()
|