aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorIvan Shynkarenka <chronoxor@gmail.com>2018-05-03 01:47:17 +0300
committerIvan Shynkarenka <chronoxor@gmail.com>2018-05-03 03:17:19 +0300
commitfeb183d895a2ea04910641be7f9cb9fe1df7b69e (patch)
tree2a4d7825d65feecf4e7b6658b30e7bfedc07c989 /cmake
parent92898e9e9cb2f1c006fcc5099c9c96eafce63dc8 (diff)
downloadprotobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.tar.gz
protobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.tar.bz2
protobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.zip
Appveyor MinGW build
Diffstat (limited to 'cmake')
-rw-r--r--cmake/tests.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/tests.cmake b/cmake/tests.cmake
index ec790e33..f91567b8 100644
--- a/cmake/tests.cmake
+++ b/cmake/tests.cmake
@@ -204,6 +204,10 @@ if(protobuf_ABSOLUTE_TEST_PLUGIN_PATH)
add_compile_options(-DGOOGLE_PROTOBUF_TEST_PLUGIN_PATH="$<TARGET_FILE:test_plugin>")
endif()
+if(MINGW)
+ set_source_files_properties(${tests_files} PROPERTIES COMPILE_FLAGS "-Wno-narrowing")
+endif()
+
add_executable(tests ${tests_files} ${common_test_files} ${tests_proto_files} ${lite_test_proto_files})
target_link_libraries(tests libprotoc libprotobuf gmock_main)