diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-12-14 17:00:47 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-01-09 12:27:19 -0800 |
| commit | bb1bb1c94a72b891883efa6522791620ef3bbc0f (patch) | |
| tree | 841552caea8bf21ff6a7dc66c62e8e00063bb437 /ports/protobuf/version-rc-msvc.patch | |
| parent | 11286693b0745dc97246170e06d9e1547a8ce0fd (diff) | |
| download | vcpkg-bb1bb1c94a72b891883efa6522791620ef3bbc0f.tar.gz vcpkg-bb1bb1c94a72b891883efa6522791620ef3bbc0f.zip | |
Updates 2018.12.14
Diffstat (limited to 'ports/protobuf/version-rc-msvc.patch')
| -rw-r--r-- | ports/protobuf/version-rc-msvc.patch | 16 |
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)
|
