Skip to content

Commit 09d97c1

Browse files
committed
bazel: Fix OR_DLL integration
1 parent e430b73 commit 09d97c1

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

ortools/base/BUILD.bazel

+8
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,17 @@ cc_library(
379379
],
380380
)
381381

382+
cc_library(
383+
name = "base_export",
384+
hdrs = ["base_export.h"],
385+
)
386+
382387
cc_library(
383388
name = "macros",
384389
hdrs = ["macros.h"],
390+
deps = [
391+
":base_export",
392+
],
385393
)
386394

387395
cc_library(

ortools/math_opt/core/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ cc_library(
146146
name = "solver_debug",
147147
srcs = ["solver_debug.cc"],
148148
hdrs = ["solver_debug.h"],
149+
deps = ["//ortools/base:base_export"],
149150
)
150151

151152
cc_library(

ortools/math_opt/core/solver_debug.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <atomic>
1818
#include <cstdint>
1919

20-
#include <ortools/base/base_export.h>
20+
#include "ortools/base/base_export.h"
2121

2222
namespace operations_research {
2323
namespace math_opt {

0 commit comments

Comments
 (0)