aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/libprotobuf.cmake
diff options
context:
space:
mode:
authorGravatar Ivan Shynkarenka <chronoxor@gmail.com>2018-05-15 23:19:58 +0300
committerGravatar Ivan Shynkarenka <chronoxor@gmail.com>2018-05-15 23:19:58 +0300
commit291d9a0ab0b452537d22a81b551eaea53fd157a8 (patch)
treedbb4be8fb168e15e8375514e7c7253aeae5eec32 /cmake/libprotobuf.cmake
parent5932547a6f7d5079a4ea0a2eba83748879bf6375 (diff)
Fix issue with version.rc
Diffstat (limited to 'cmake/libprotobuf.cmake')
-rw-r--r--cmake/libprotobuf.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake
index a1fdf7c0..bd570be7 100644
--- a/cmake/libprotobuf.cmake
+++ b/cmake/libprotobuf.cmake
@@ -112,9 +112,11 @@ set(libprotobuf_includes
${protobuf_source_dir}/src/google/protobuf/wrappers.pb.h
)
+if (MSVC)
set(libprotobuf_rc_files
${CMAKE_CURRENT_BINARY_DIR}/version.rc
)
+endif()
add_library(libprotobuf ${protobuf_SHARED_OR_STATIC}
${libprotobuf_lite_files} ${libprotobuf_files} ${libprotobuf_includes} ${libprotobuf_rc_files})