From e7a7ac744eb0f890ef52388de838596ef566c73f Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Thu, 8 Sep 2022 15:07:00 +0300 Subject: [PATCH] CMake: Clarify a comment about Windows symlinks without file extension. --- CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90939c2b..62d349ae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -711,10 +711,9 @@ if(NOT MSVC AND HAVE_GETOPT_LONG) # Create symlinks in the build directory and then install them. # - # FIXME? On OSes where executables have a suffix like .exe, this - # will create links like unxz -> xz.exe which is correct on Cygwin - # but perhaps on some other cases unxz.suffix -> xz.suffix would - # be the corrent thing? + # The symlinks do not likely need any special extension since + # even on Windows the symlink can still be executed without + # the .exe extension. foreach(LINK IN LISTS XZ_LINKS) add_custom_target("${LINK}" ALL "${CMAKE_COMMAND}" -E create_symlink