mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 21:29:02 +08:00
26 lines
1.5 KiB
Diff
26 lines
1.5 KiB
Diff
diff --git a/cmake/libprotoc.cmake b/cmake/libprotoc.cmake
|
|
index 107c1c5..233bcf6 100644
|
|
--- a/cmake/libprotoc.cmake
|
|
+++ b/cmake/libprotoc.cmake
|
|
@@ -73,7 +73,7 @@ set(libprotoc_files
|
|
${protobuf_source_dir}/src/google/protobuf/compiler/javanano/javanano_message_field.cc
|
|
${protobuf_source_dir}/src/google/protobuf/compiler/javanano/javanano_primitive_field.cc
|
|
${protobuf_source_dir}/src/google/protobuf/compiler/js/js_generator.cc
|
|
- ${protobuf_source_dir}/src/google/protobuf/compiler/js/well_known_types_embed.cc
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/well_known_types_embed.cc
|
|
${protobuf_source_dir}/src/google/protobuf/compiler/objectivec/objectivec_enum.cc
|
|
${protobuf_source_dir}/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc
|
|
${protobuf_source_dir}/src/google/protobuf/compiler/objectivec/objectivec_extension.cc
|
|
@@ -210,9 +210,9 @@ set(js_well_known_types_sources
|
|
)
|
|
add_executable(js_embed ${protobuf_source_dir}/src/google/protobuf/compiler/js/embed.cc)
|
|
add_custom_command(
|
|
- OUTPUT ${protobuf_source_dir}/src/google/protobuf/compiler/js/well_known_types_embed.cc
|
|
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/well_known_types_embed.cc
|
|
DEPENDS js_embed ${js_well_known_types_sources}
|
|
- COMMAND js_embed ${js_well_known_types_sources} > ${protobuf_source_dir}/src/google/protobuf/compiler/js/well_known_types_embed.cc
|
|
+ COMMAND "$<TARGET_FILE:js_embed>" ${js_well_known_types_sources} > ${CMAKE_CURRENT_BINARY_DIR}/well_known_types_embed.cc
|
|
)
|
|
|
|
add_library(libprotoc ${protobuf_SHARED_OR_STATIC}
|