Fix generate_single_protobuf timestamp file generation.
This commit is contained in:
parent
bb07e9d698
commit
8cbc57f355
1 changed files with 2 additions and 6 deletions
8
external/cld3/generate_protobuf.cmake
vendored
8
external/cld3/generate_protobuf.cmake
vendored
|
|
@ -34,12 +34,6 @@ function(generate_single_protobuf target_name gen_dst protobuf_name executable)
|
||||||
${gen_dst}/${protobuf_name_we}.pb.h
|
${gen_dst}/${protobuf_name_we}.pb.h
|
||||||
)
|
)
|
||||||
|
|
||||||
string(TIMESTAMP gen_timestamp_var "%s")
|
|
||||||
file(WRITE ${gen_timestamp} ${gen_timestamp_var})
|
|
||||||
|
|
||||||
# Fix warning MSB8065.
|
|
||||||
set_source_files_properties(${gen_timestamp} PROPERTIES SYMBOLIC 1)
|
|
||||||
|
|
||||||
set(gen_src ${cld3_src}/${protobuf_name})
|
set(gen_src ${cld3_src}/${protobuf_name})
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT
|
OUTPUT
|
||||||
|
|
@ -52,6 +46,8 @@ function(generate_single_protobuf target_name gen_dst protobuf_name executable)
|
||||||
${gen_dst}
|
${gen_dst}
|
||||||
${_protobuf_include_path}
|
${_protobuf_include_path}
|
||||||
${gen_src}
|
${gen_src}
|
||||||
|
COMMAND
|
||||||
|
echo 1> ${gen_timestamp}
|
||||||
COMMENT "Generating protobuf ${protobuf_name} (${target_name})"
|
COMMENT "Generating protobuf ${protobuf_name} (${target_name})"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
${executable}
|
${executable}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue