chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
306fab3
)
Unix: allow adding a prefix to all the puzzle names.
author
Simon Tatham
<anakin@pobox.com>
Wed, 31 Mar 2021 17:44:44 +0000
(18:44 +0100)
committer
Simon Tatham
<anakin@pobox.com>
Wed, 31 Mar 2021 17:44:44 +0000
(18:44 +0100)
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.
cmake/platforms/unix.cmake
patch
|
blob
|
history
diff --git
a/cmake/platforms/unix.cmake
b/cmake/platforms/unix.cmake
index df951443d8c35fe9bc8192cf374156b2acc0e700..49a1b1f85d1fb42b32884b53c3a15c1cb7f97669 100644
(file)
--- 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()