Use BYPRODUCTS instead of OUTPUT for codegen.

This commit is contained in:
John Preston 2019-11-28 11:42:57 +03:00
parent 5bfb98b70d
commit d932271c60
6 changed files with 18 additions and 6 deletions

View File

@ -11,10 +11,14 @@ function(generate_lang target_name lang_file)
set(generated_files
${gen_dst}/lang_auto.cpp
${gen_dst}/lang_auto.h
${gen_dst}/lang_auto.timestamp
)
add_custom_command(
OUTPUT
${generated_files}
${gen_dst}/lang_auto.timestamp
BYPRODUCTS
${gen_dst}/lang_auto.cpp
${gen_dst}/lang_auto.h
COMMAND
codegen_lang
-o${gen_dst}

View File

@ -11,10 +11,14 @@ function(generate_numbers target_name numbers_file)
set(generated_files
${gen_dst}/numbers.cpp
${gen_dst}/numbers.h
${gen_dst}/numbers.timestamp
)
add_custom_command(
OUTPUT
${generated_files}
${gen_dst}/numbers.timestamp
BYPRODUCTS
${gen_dst}/numbers.cpp
${gen_dst}/numbers.h
COMMAND
codegen_numbers
-o${gen_dst}

View File

@ -11,10 +11,14 @@ function(generate_scheme target_name script scheme_files)
set(generated_files
${gen_dst}/scheme.cpp
${gen_dst}/scheme.h
${gen_dst}/scheme.timestamp
)
add_custom_command(
OUTPUT
${generated_files}
${gen_dst}/scheme.timestamp
BYPRODUCTS
${gen_dst}/scheme.cpp
${gen_dst}/scheme.h
COMMAND
python
${script}

@ -1 +1 @@
Subproject commit 69190a33751b25dba7681e44656e608a575bbfb3
Subproject commit 4b46cfa2f5f3c8343fa3bf2b9970d2a62f854634

@ -1 +1 @@
Subproject commit 5e1b052bf788e50671be38b46a6818e14cf92e24
Subproject commit 294f36dfaa657303ea19764f639f3f6e0b3e2062

@ -1 +1 @@
Subproject commit 6fda2709ea0f594fc869422dee77eef2fd9dc86c
Subproject commit 4b25cd30d14e94220f8fe213e85554a84fefbc1e