cmake: Fix math_opt build when USE_PDLP=OFF

This commit is contained in:
Corentin Le Molgat
2023-09-08 17:42:33 +02:00
parent 4d1a2d4d32
commit 36aaa82356

View File

@@ -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()