From 90fd16f931c29454bdec89ca8efe1f1aa487569d Mon Sep 17 00:00:00 2001 From: anarthal Date: Tue, 14 Jan 2020 16:31:04 +0100 Subject: [PATCH] Removed channel.cpp from unittests for MSVC --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3dd67dcc..8038033c 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -17,7 +17,6 @@ endif() add_executable( mysql_unittests unit/serialization.cpp - unit/channel.cpp unit/capabilities.cpp unit/auth.cpp unit/metadata.cpp @@ -25,6 +24,11 @@ add_executable( unit/value.cpp unit/row.cpp ) +# A codegen issue in MSVC C++17 makes gmock expectations not work +if (NOT MSVC) + target_sources(mysql_unittests PRIVATE unit/channel.cpp) +endif() + target_include_directories( mysql_unittests PRIVATE