diff options
author | Nikita Nemkin <nikita@nemkin.ru> | 2020-11-12 09:07:32 (GMT) |
---|---|---|
committer | Nikita Nemkin <nikita@nemkin.ru> | 2020-11-12 15:14:05 (GMT) |
commit | cb28d9af1ff3f01c7b1e63f819cbe67723110fe2 (patch) | |
tree | 61fd7bbff7783d8d47ab960362272b524bcd8846 /Modules/UseJavaSymlinks.cmake | |
parent | 8705f9116e5257c52746d6e1aadd28d1c9357e00 (diff) | |
download | CMake-cb28d9af1ff3f01c7b1e63f819cbe67723110fe2.zip CMake-cb28d9af1ff3f01c7b1e63f819cbe67723110fe2.tar.gz CMake-cb28d9af1ff3f01c7b1e63f819cbe67723110fe2.tar.bz2 |
UseJava: Move helper scripts to subdirectory
Also, exclude them from the help module index.
Diffstat (limited to 'Modules/UseJavaSymlinks.cmake')
-rw-r--r-- | Modules/UseJavaSymlinks.cmake | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Modules/UseJavaSymlinks.cmake b/Modules/UseJavaSymlinks.cmake deleted file mode 100644 index 3969f54..0000000 --- a/Modules/UseJavaSymlinks.cmake +++ /dev/null @@ -1,29 +0,0 @@ -# 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 () |