aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-03-31 18:44:44 +0100
committerSimon Tatham <anakin@pobox.com>2021-03-31 18:44:44 +0100
commitdd8164b77407fef0c56b426eb0b9a49ddeed13fa (patch)
treed5a0ea107a6796f87be733cceef2a75e88f05055
parent306fab356e357ef13578667b476abce706a55203 (diff)
downloadpuzzles-dd8164b77407fef0c56b426eb0b9a49ddeed13fa.zip
puzzles-dd8164b77407fef0c56b426eb0b9a49ddeed13fa.tar.gz
puzzles-dd8164b77407fef0c56b426eb0b9a49ddeed13fa.tar.bz2
puzzles-dd8164b77407fef0c56b426eb0b9a49ddeed13fa.tar.xz
Unix: allow adding a prefix to all the puzzle names.
A distro maintainer reminds me that downstreams often want to rename my quite generic executable names to avoid clashes in bin directories. Added a cmake option -DOUTPUT_NAME to make that easy.
-rw-r--r--cmake/platforms/unix.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/platforms/unix.cmake b/cmake/platforms/unix.cmake
index df95144..49a1b1f 100644
--- a/cmake/platforms/unix.cmake
+++ b/cmake/platforms/unix.cmake
@@ -58,6 +58,8 @@ function(get_platform_puzzle_extra_source_files OUTVAR NAME)
endfunction()
function(set_platform_puzzle_target_properties NAME TARGET)
+ set_target_properties(${TARGET} PROPERTIES
+ OUTPUT_NAME ${NAME_PREFIX}${NAME})
install(TARGETS ${TARGET})
endfunction()