Skip to content

Commit 4f179a0

Browse files
committed
fix #4557
1 parent 610f202 commit 4f179a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ortools/graph/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ if(BUILD_TESTING)
7373
GTest::gtest_main
7474
GTest::gmock
7575
COMPILE_DEFINITIONS
76-
-DROOT_DIR="$<$<BOOL:${isMultiConfig}>:../>../../"
76+
-DROOT_DIR="${CMAKE_SOURCE_DIR}"
7777
)
7878
endif()

ortools/graph/max_flow_test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace operations_research {
2626
namespace {
2727

2828
#if not defined(ROOT_DIR)
29-
#define ROOT_DIR "_main/"
29+
#define ROOT_DIR "_main"
3030
#endif
3131

3232
TEST(SimpleMaxFlowTest, EmptyWithValidSourceAndSink) {
@@ -175,7 +175,7 @@ TEST(SimpleMaxFlowTest, ProblematicProblemWithMaxCapacity) {
175175
ASSERT_OK_AND_ASSIGN(
176176
FlowModelProto model,
177177
ReadFileToProto<FlowModelProto>(file::JoinPathRespectAbsolute(
178-
::testing::SrcDir(), ROOT_DIR "ortools/graph/testdata/"
178+
::testing::SrcDir(), ROOT_DIR "/ortools/graph/testdata/"
179179
"max_flow_test1.pb.txt")));
180180
SimpleMaxFlow solver;
181181
EXPECT_EQ(SimpleMaxFlow::OPTIMAL, LoadAndSolveFlowModel(model, &solver));

0 commit comments

Comments
 (0)