From 09d97c1dbd72693db61171bbbf716aa16fc07c24 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Mon, 27 Jan 2025 14:33:58 +0100 Subject: [PATCH] bazel: Fix OR_DLL integration --- ortools/base/BUILD.bazel | 8 ++++++++ ortools/math_opt/core/BUILD.bazel | 1 + ortools/math_opt/core/solver_debug.h | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ortools/base/BUILD.bazel b/ortools/base/BUILD.bazel index 327a9aa70c..9b24f1a603 100644 --- a/ortools/base/BUILD.bazel +++ b/ortools/base/BUILD.bazel @@ -379,9 +379,17 @@ cc_library( ], ) +cc_library( + name = "base_export", + hdrs = ["base_export.h"], +) + cc_library( name = "macros", hdrs = ["macros.h"], + deps = [ + ":base_export", + ], ) cc_library( diff --git a/ortools/math_opt/core/BUILD.bazel b/ortools/math_opt/core/BUILD.bazel index 5baa479cf1..6ce22e35e0 100644 --- a/ortools/math_opt/core/BUILD.bazel +++ b/ortools/math_opt/core/BUILD.bazel @@ -146,6 +146,7 @@ cc_library( name = "solver_debug", srcs = ["solver_debug.cc"], hdrs = ["solver_debug.h"], + deps = ["//ortools/base:base_export"], ) cc_library( diff --git a/ortools/math_opt/core/solver_debug.h b/ortools/math_opt/core/solver_debug.h index 6f80e4aa1b..aaf59048fe 100644 --- a/ortools/math_opt/core/solver_debug.h +++ b/ortools/math_opt/core/solver_debug.h @@ -17,7 +17,7 @@ #include #include -#include +#include "ortools/base/base_export.h" namespace operations_research { namespace math_opt {