aboutsummaryrefslogtreecommitdiff
path: root/cmake/protoc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/protoc.cmake')
-rw-r--r--cmake/protoc.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/protoc.cmake b/cmake/protoc.cmake
index 9bf6f5a9..bb160f47 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)