From 294d9d3b5c9ee4f5f13ddccafee6aba7dca00084 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 14 Oct 2024 13:03:55 +0200 Subject: [PATCH] math_opt: disable broken test when using CMake --- ortools/math_opt/solver_tests/CMakeLists.txt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ortools/math_opt/solver_tests/CMakeLists.txt b/ortools/math_opt/solver_tests/CMakeLists.txt index f4a92b5147..0c1b059d64 100644 --- a/ortools/math_opt/solver_tests/CMakeLists.txt +++ b/ortools/math_opt/solver_tests/CMakeLists.txt @@ -110,15 +110,16 @@ ortools_cxx_library( TESTING ) -ortools_cxx_test( - NAME - ${_PREFIX}_unregistered_solver_test - SOURCES - "unregistered_solver_test.cc" - LINK_LIBRARIES - GTest::gmock - GTest::gmock_main -) +# In CMake or-tools is linked with all enable solvers so this test won't work. +#ortools_cxx_test( +# NAME +# ${_PREFIX}_unregistered_solver_test +# SOURCES +# "unregistered_solver_test.cc" +# LINK_LIBRARIES +# GTest::gmock +# GTest::gmock_main +#) ortools_cxx_library( NAME