aboutsummaryrefslogtreecommitdiff
path: root/cmake/protoc.cmake
diff options
context:
space:
mode:
authorIvan Shynkarenka <chronoxor@gmail.com>2018-05-15 23:19:58 +0300
committerIvan Shynkarenka <chronoxor@gmail.com>2018-05-15 23:19:58 +0300
commit291d9a0ab0b452537d22a81b551eaea53fd157a8 (patch)
treedbb4be8fb168e15e8375514e7c7253aeae5eec32 /cmake/protoc.cmake
parent5932547a6f7d5079a4ea0a2eba83748879bf6375 (diff)
downloadprotobuf-291d9a0ab0b452537d22a81b551eaea53fd157a8.tar.gz
protobuf-291d9a0ab0b452537d22a81b551eaea53fd157a8.tar.bz2
protobuf-291d9a0ab0b452537d22a81b551eaea53fd157a8.zip
Fix issue with version.rc
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)