diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-20 00:28:42 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-20 00:28:42 +0000 |
| commit | 1880feb442c4b2d73137b02c8dc58f8d38f4e16a (patch) | |
| tree | a4c7d2607777156b1b95dd319ba4aa11e67e416b /cmake/setup.cmake | |
| parent | 1470c9530b1cff33d11170b9b891d94be62c4194 (diff) | |
| download | puzzles-1880feb442c4b2d73137b02c8dc58f8d38f4e16a.zip puzzles-1880feb442c4b2d73137b02c8dc58f8d38f4e16a.tar.gz puzzles-1880feb442c4b2d73137b02c8dc58f8d38f4e16a.tar.bz2 puzzles-1880feb442c4b2d73137b02c8dc58f8d38f4e16a.tar.xz | |
Support multiple COMPILE_DEFINITIONS for a program
Despite the name, COMPILE_DEFINITIONS was only ever used to set a
single definition, and as far as I can tell that's all it could do
even when I tried to put them in a single word separated by
semicolons. Turning COMPILE_DEFINITIONS into a multi-valued argument
seems to make it work much better.
Diffstat (limited to 'cmake/setup.cmake')
| -rw-r--r-- | cmake/setup.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/setup.cmake b/cmake/setup.cmake index ea8d1bf..4008030 100644 --- a/cmake/setup.cmake +++ b/cmake/setup.cmake @@ -115,7 +115,7 @@ endfunction() # a command-line helper tool. function(cliprogram NAME) cmake_parse_arguments(OPT - "" "COMPILE_DEFINITIONS" "" ${ARGN}) + "" "" "COMPILE_DEFINITIONS" ${ARGN}) if(build_cli_programs) add_executable(${NAME} ${CMAKE_SOURCE_DIR}/nullfe.c @@ -131,7 +131,7 @@ endfunction() # the normal puzzle frontend. function(guiprogram NAME) cmake_parse_arguments(OPT - "" "COMPILE_DEFINITIONS" "" ${ARGN}) + "" "" "COMPILE_DEFINITIONS" ${ARGN}) if(build_gui_programs) get_platform_puzzle_extra_source_files(extra_files ${NAME}) |