aboutsummaryrefslogtreecommitdiff
path: root/ports/protobuf/version-rc-msvc.patch
blob: b24a862d9dcc760b4edfc40915f5237f08a03323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)