Skip to content

Commit

Permalink
math_opt: Fix CMake build when USE_SCIP=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Aug 1, 2024
1 parent eb92f3c commit cd2f6e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ortools/math_opt/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ set(NAME ${PROJECT_NAME}_math_opt_io)
add_library(${NAME} OBJECT)

file(GLOB _SRCS "*.h" "*.cc")
if(NOT USE_SCIP)
list(FILTER _SRCS EXCLUDE REGEX "/lp_parser.h$")
list(FILTER _SRCS EXCLUDE REGEX "/lp_parser.cc$")
endif()
target_sources(${NAME} PRIVATE ${_SRCS})
set_target_properties(${NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_include_directories(${NAME} PUBLIC
Expand Down

0 comments on commit cd2f6e1

Please sign in to comment.