From 2c8c9750755f9651734f627c74d46573377047e6 Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Sun, 27 Oct 2019 16:16:10 -0400 Subject: [PATCH] CMake Improvements: reverted use of TARGET_FILE_SUFFIX because it requires CMake 3.15 or newer, which is not available on all test systems. --- cmake/SymLink.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/SymLink.cmake b/cmake/SymLink.cmake index 4959b58..19f7739 100644 --- a/cmake/SymLink.cmake +++ b/cmake/SymLink.cmake @@ -14,12 +14,13 @@ endfunction() function(install_target_symlink original symlink) if(WIN32) set(op copy) + set(symlink "${symlink}.exe") else() set(op create_symlink) endif() add_custom_command(TARGET ${original} POST_BUILD - COMMAND ${CMAKE_COMMAND} -E ${op} $ ${symlink}$ + COMMAND ${CMAKE_COMMAND} -E ${op} $ ${symlink} WORKING_DIRECTORY $ COMMENT "Generating symbolic link (or copy) ${symlink} of ${original}") - install(PROGRAMS $/${symlink}$ DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(PROGRAMS $/${symlink} DESTINATION ${CMAKE_INSTALL_BINDIR}) endfunction()