ref: dd8164b77407fef0c56b426eb0b9a49ddeed13fa
parent: 306fab356e357ef13578667b476abce706a55203
author: Simon Tatham <anakin@pobox.com>
date: Wed Mar 31 14:44:44 EDT 2021
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.
--- a/cmake/platforms/unix.cmake
+++ b/cmake/platforms/unix.cmake
@@ -58,6 +58,8 @@
endfunction()
function(set_platform_puzzle_target_properties NAME TARGET)
+ set_target_properties(${TARGET} PROPERTIES
+ OUTPUT_NAME ${NAME_PREFIX}${NAME})
install(TARGETS ${TARGET})
endfunction()