aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2018-05-14 13:44:29 -0700
committerGravatar GitHub <noreply@github.com>2018-05-14 13:44:29 -0700
commit4600f789a2328f4cb2af07090c291ef508312ad2 (patch)
treea34bfc412c0daee1bec59ca74b46c3f6df444be3 /cmake
parent6dda83dc8c0c819d6a51ccc18bf9c609d25e62e0 (diff)
parentfeb183d895a2ea04910641be7f9cb9fe1df7b69e (diff)
Merge pull request #4587 from chronoxor/master
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)