diff options
author | Chad Elliott <elliottc@objectcomputing.com> | 2022-10-12 12:32:01 -0500 |
---|---|---|
committer | Chad Elliott <elliottc@objectcomputing.com> | 2022-10-12 12:32:01 -0500 |
commit | 544dccd46addc8c495704f861b156dc539f2289a (patch) | |
tree | 8b161abaf7924f19ff5067d4af6ae08e2a245c25 /templates | |
parent | fbd413bd8c9832a06fe6e99983b9b2aef48e7cd8 (diff) | |
download | MPC-544dccd46addc8c495704f861b156dc539f2289a.tar.gz |
Added support for flag_overrides of command flags.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/cmake.mpd | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/cmake.mpd b/templates/cmake.mpd index 843a5259..8a7269d8 100644 --- a/templates/cmake.mpd +++ b/templates/cmake.mpd @@ -69,18 +69,24 @@ add_compile_definitions(<%macros%>) <%if(custom_type->command)%> include(<%custom_type%> OPTIONAL) -<%uc(custom_type)%>_TARGET_SOURCES(${PROJECT_TARGET} PUBLIC <%custom_type->input_files%> - <%uc(custom_type)%>_OPTIONS <%custom_type->commandflags%>) +<%foreach(custom_type->input_files)%> +<%uc(custom_type)%>_TARGET_SOURCES( + ${PROJECT_TARGET} PUBLIC <%custom_type->input_file%> + <%uc(custom_type)%>_OPTIONS <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%>) + +<%endfor%> <%else%> <%foreach(custom_type->input_files)%> -<%if(forfirst && custom_type->input_file->commands)%> +<%if(custom_type->input_file->commands)%> +<%if(forfirst)%> include(<%custom_type%> OPTIONAL) -<%foreach(custom_type->input_files)%> +<%endif%> <%uc(custom_type)%>_TARGET_SOURCES( ${PROJECT_TARGET} PUBLIC <%custom_type->input_file%> <%foreach(custom_type->input_file->commands)%> <%uc(custom_type->input_file->command->type)%>_OPTIONS <%custom_type->input_file->command->flags%><%fornotlast(" -")%><%endfor%><%endfor%>) +")%><%endfor%>) + <%endif%> <%endfor%> <%endif%> |