Skip to content

Commit

Permalink
cmake: Fix mathop_build when USE_SCIP=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Sep 4, 2023
1 parent 67fb493 commit b23ee0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ if(USE_PDLP)
file(GLOB_RECURSE pdlp_proto_files RELATIVE ${PROJECT_SOURCE_DIR} "ortools/pdlp/*.proto")
list(APPEND proto_files ${pdlp_proto_files})
endif()
if(USE_SCIP)
if(USE_SCIP OR BUILD_MATH_OPT)
file(GLOB_RECURSE gscip_proto_files RELATIVE ${PROJECT_SOURCE_DIR} "ortools/gscip/*.proto")
list(APPEND proto_files ${gscip_proto_files})
endif()
Expand Down
2 changes: 2 additions & 0 deletions ortools/math_opt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ endif()

if(NOT USE_SCIP)
list(FILTER _SRCS EXCLUDE REGEX "/gscip/")
list(FILTER _SRCS EXCLUDE REGEX "/gscip_.*.h$")
list(FILTER _SRCS EXCLUDE REGEX "/gscip_.*.cc$")
endif()

set(NAME ${PROJECT_NAME}_math_opt)
Expand Down

0 comments on commit b23ee0b

Please sign in to comment.