Use BYPRODUCTS instead of OUTPUT for codegen.
This commit is contained in:
parent
6fda2709ea
commit
4b25cd30d1
3 changed files with 17 additions and 3 deletions
|
|
@ -8,10 +8,16 @@ function(generate_emoji target_name suggestions_json)
|
|||
${gen_dst}/emoji.h
|
||||
${gen_dst}/emoji_suggestions_data.cpp
|
||||
${gen_dst}/emoji_suggestions_data.h
|
||||
${gen_dst}/emoji.timestamp
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${generated_files}
|
||||
${gen_dst}/emoji.timestamp
|
||||
BYPRODUCTS
|
||||
${gen_dst}/emoji.cpp
|
||||
${gen_dst}/emoji.h
|
||||
${gen_dst}/emoji_suggestions_data.cpp
|
||||
${gen_dst}/emoji_suggestions_data.h
|
||||
COMMAND
|
||||
codegen_emoji
|
||||
-o${gen_dst}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,14 @@ function(generate_palette target_name palette_file)
|
|||
set(generated_files
|
||||
${gen_dst}/styles/palette.cpp
|
||||
${gen_dst}/styles/palette.h
|
||||
${gen_dst}/styles/palette.timestamp
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${generated_files}
|
||||
${gen_dst}/styles/palette.timestamp
|
||||
BYPRODUCTS
|
||||
${gen_dst}/styles/palette.cpp
|
||||
${gen_dst}/styles/palette.h
|
||||
COMMAND
|
||||
codegen_style
|
||||
-I${gen_dst}
|
||||
|
|
|
|||
|
|
@ -14,11 +14,15 @@ function(generate_styles target_name src_loc style_files dependent_style_files)
|
|||
set(generated_files
|
||||
${gen_dst}/styles/style_${file_name}.cpp
|
||||
${gen_dst}/styles/style_${file_name}.h
|
||||
${gen_dst}/styles/style_${file_name}.timestamp
|
||||
)
|
||||
list(APPEND full_generated_files ${generated_files})
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${generated_files}
|
||||
${gen_dst}/styles/style_${file_name}.timestamp
|
||||
BYPRODUCTS
|
||||
${gen_dst}/styles/style_${file_name}.cpp
|
||||
${gen_dst}/styles/style_${file_name}.h
|
||||
COMMAND
|
||||
codegen_style
|
||||
-I${src_loc}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue