diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-08-06 20:57:23 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-08-06 20:57:23 +0200 |
commit | 3a2d2d6b037de28f04378dc32237e406861f6730 (patch) | |
tree | 507a7eeb120458e3af892c442aac7925ded8810a /src/gui/curses/CMakeLists.txt | |
parent | f0cd7a994a38745847e9cff78b89d1f2848861c7 (diff) | |
download | weechat-3a2d2d6b037de28f04378dc32237e406861f6730.zip |
core: use $DESTDIR when creating symbolic link "weechat-curses" with cmake
Diffstat (limited to 'src/gui/curses/CMakeLists.txt')
-rw-r--r-- | src/gui/curses/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt index ca72edb29..bc29bb740 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${CMAKE_EXECUTABLE_SUFFIX}\")") -INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink weechat \"${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}\")") +INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E remove -f \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}\")") +INSTALL(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink weechat \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/weechat-curses${CMAKE_EXECUTABLE_SUFFIX}\")") |