aboutsummaryrefslogtreecommitdiff
path: root/ports/protobuf/version-rc-msvc.patch
diff options
context:
space:
mode:
authorAlenas <alenas.kisonas@tesonet.com>2019-01-10 11:02:32 +0200
committerAlenas <alenas.kisonas@tesonet.com>2019-01-10 11:02:32 +0200
commit0928f1056be265c691b29e128f55975967fc4646 (patch)
tree1d1001ae2deebdc84dfbaac9e7b2c30c6c3974e6 /ports/protobuf/version-rc-msvc.patch
parent4a1ff062563aa7de746b88fc6a8ba2030aa87c98 (diff)
parent7578a485b181ded330b87cc72726f01e38ff7ed6 (diff)
downloadvcpkg-0928f1056be265c691b29e128f55975967fc4646.tar.gz
vcpkg-0928f1056be265c691b29e128f55975967fc4646.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ports/protobuf/version-rc-msvc.patch')
-rw-r--r--ports/protobuf/version-rc-msvc.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ports/protobuf/version-rc-msvc.patch b/ports/protobuf/version-rc-msvc.patch
new file mode 100644
index 000000000..b24a862d9
--- /dev/null
+++ b/ports/protobuf/version-rc-msvc.patch
@@ -0,0 +1,16 @@
+diff --git a/cmake/protoc.cmake b/cmake/protoc.cmake
+index 9bf6f5a..b58a12a 100644
+--- a/cmake/protoc.cmake
++++ b/cmake/protoc.cmake
+@@ -2,9 +2,11 @@ set(protoc_files
+ ${protobuf_source_dir}/src/google/protobuf/compiler/main.cc
+ )
+
++if(MSVC)
+ set(protoc_rc_files
+ ${CMAKE_CURRENT_BINARY_DIR}/version.rc
+ )
++endif()
+
+ add_executable(protoc ${protoc_files} ${protoc_rc_files})
+ target_link_libraries(protoc libprotobuf libprotoc)