From 36aaa8235632ea0a99fa54afddbfe5687732dfc5 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Fri, 8 Sep 2023 17:42:33 +0200 Subject: [PATCH] cmake: Fix math_opt build when USE_PDLP=OFF --- cmake/cpp.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cpp.cmake b/cmake/cpp.cmake index 36b6da6352..98c5f5af76 100644 --- a/cmake/cpp.cmake +++ b/cmake/cpp.cmake @@ -202,7 +202,7 @@ if(BUILD_MATH_OPT) ) list(APPEND proto_files ${math_opt_proto_files}) endif() -if(USE_PDLP) +if(USE_PDLP OR BUILD_MATH_OPT) file(GLOB_RECURSE pdlp_proto_files RELATIVE ${PROJECT_SOURCE_DIR} "ortools/pdlp/*.proto") list(APPEND proto_files ${pdlp_proto_files}) endif()