Skip to content

Commit

Permalink
Fix generate_single_protobuf timestamp file generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Dec 26, 2022
1 parent bb07e9d commit 8cbc57f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions external/cld3/generate_protobuf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ function(generate_single_protobuf target_name gen_dst protobuf_name executable)
${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})
add_custom_command(
OUTPUT
Expand All @@ -52,6 +46,8 @@ function(generate_single_protobuf target_name gen_dst protobuf_name executable)
${gen_dst}
${_protobuf_include_path}
${gen_src}
COMMAND
echo 1> ${gen_timestamp}
COMMENT "Generating protobuf ${protobuf_name} (${target_name})"
DEPENDS
${executable}
Expand Down

0 comments on commit 8cbc57f

Please sign in to comment.