diff options
author | Ivan Shynkarenka <chronoxor@gmail.com> | 2018-05-03 01:47:17 +0300 |
---|---|---|
committer | Ivan Shynkarenka <chronoxor@gmail.com> | 2018-05-03 03:17:19 +0300 |
commit | feb183d895a2ea04910641be7f9cb9fe1df7b69e (patch) | |
tree | 2a4d7825d65feecf4e7b6658b30e7bfedc07c989 /cmake/tests.cmake | |
parent | 92898e9e9cb2f1c006fcc5099c9c96eafce63dc8 (diff) | |
download | protobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.tar.gz protobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.tar.bz2 protobuf-feb183d895a2ea04910641be7f9cb9fe1df7b69e.zip |
Appveyor MinGW build
Diffstat (limited to 'cmake/tests.cmake')
-rw-r--r-- | cmake/tests.cmake | 4 |
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) |