mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 17:19:09 +08:00
17 lines
450 B
Diff
17 lines
450 B
Diff
|
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)
|