diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-08-02 18:40:40 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-08-02 18:40:40 +0200 |
commit | fd5fc2e5a35926387eb332f612752a6b0726e10e (patch) | |
tree | 976674cc182e123bfc7381f7ae1a9465d4dddbf5 /src/gui/curses | |
parent | 996da2f662d04abd18ecf4e8a65fbf9aac1b50d9 (diff) | |
download | weechat-fd5fc2e5a35926387eb332f612752a6b0726e10e.zip |
core: add platform-dependent extension on "weechat-curses" link (so that link is "weechat-curses.exe" on cygwin)
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/gui/curses/Makefile.am | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt index 24efc07fe..ca72edb29 100644 --- a/src/gui/curses/CMakeLists.txt +++ b/src/gui/curses/CMakeLists.txt @@ -81,5 +81,5 @@ INSTALL(TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin) # Create a symbolic link weechat -> weechat-curses # This link is created for compatibility with old versions on /upgrade. # It may be removed in future. -INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E remove -f \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses\")") -INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink weechat \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses\")") +INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E remove -f \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}\")") +INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink weechat \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}\")") diff --git a/src/gui/curses/Makefile.am b/src/gui/curses/Makefile.am index d3982d1ab..566356de6 100644 --- a/src/gui/curses/Makefile.am +++ b/src/gui/curses/Makefile.am @@ -50,4 +50,4 @@ EXTRA_DIST = CMakeLists.txt # This link is created for compatibility with old versions on /upgrade. # It may be removed in future. install-exec-hook: - (cd $(DESTDIR)$(bindir) && rm -f weechat-curses && $(LN_S) weechat weechat-curses) + (cd $(DESTDIR)$(bindir) && rm -f weechat-curses$(EXEEXT) && $(LN_S) weechat weechat-curses$(EXEEXT)) |