From: Simon Tatham Date: Wed, 31 Mar 2021 17:44:44 +0000 (+0100) Subject: Unix: allow adding a prefix to all the puzzle names. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=dd8164b77407fef0c56b426eb0b9a49ddeed13fa;p=sgt-puzzles.git 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. --- 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()