https://github.com/Kitware/CMake
Revision 35fe47bd5d9508aa90fd1569eb2eaf3f982ebee5 authored by Brad King on 23 October 2018, 15:06:44 UTC, committed by Brad King on 23 October 2018, 15:06:44 UTC
2 parent s 718033b + d004d8c
Raw File
Tip revision: 35fe47bd5d9508aa90fd1569eb2eaf3f982ebee5 authored by Brad King on 23 October 2018, 15:06:44 UTC
Merge branch 'vs-csharp-in-custom-target' into release-3.13
Tip revision: 35fe47b
UseJavaSymlinks.cmake
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or 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 ()
back to top