diff options
author | Christophe Giboudeaux <christophe@krop.fr> | 2021-03-29 20:28:58 +0200 |
---|---|---|
committer | Christophe Giboudeaux <christophe@krop.fr> | 2021-04-06 19:59:17 +0000 |
commit | 272352969834598cfd20f3e8b15916aa3ccebbbb (patch) | |
tree | d0d831203f0816ee2d4edecb526cdbdec64ea3d4 /attic/modules/create_exe_symlink.cmake | |
parent | d88db6a1469bdcb48e64f265d35a6f7867767b54 (diff) | |
download | extra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.gz extra-cmake-modules-272352969834598cfd20f3e8b15916aa3ccebbbb.tar.bz2 |
Clean ECM's attic
Diffstat (limited to 'attic/modules/create_exe_symlink.cmake')
-rw-r--r-- | attic/modules/create_exe_symlink.cmake | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/attic/modules/create_exe_symlink.cmake b/attic/modules/create_exe_symlink.cmake deleted file mode 100644 index f265780b..00000000 --- a/attic/modules/create_exe_symlink.cmake +++ /dev/null @@ -1,16 +0,0 @@ -# Create an executable symlink to a Python script. -# This also sets the target script's permission bits. - -MESSAGE(STATUS "Symlinking $ENV{DESTDIR}/${LINK_NAME} to ${TARGET}") - -GET_FILENAME_COMPONENT(abs_link_name $ENV{DESTDIR}/${LINK_NAME} ABSOLUTE) -GET_FILENAME_COMPONENT(link_path $ENV{DESTDIR}/${LINK_NAME} PATH) -GET_FILENAME_COMPONENT(abs_link_path ${link_path} ABSOLUTE) -FILE(MAKE_DIRECTORY ${abs_link_path}) - -GET_FILENAME_COMPONENT(abs_target ${TARGET} ABSOLUTE) -IF(UNIX) - EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink ${abs_target} ${abs_link_name}) - EXECUTE_PROCESS(COMMAND chmod a+x $ENV{DESTDIR}/${abs_target}) -ENDIF(UNIX) -# FIXME: WIN32 support |