Skip to content

MathOpt solvers missing in static #4538

Discussion options

You must be logged in to vote

Good Catch, will try to fix it ASAP.

my 2 cents, did you try to use $<LINK_LIBRARY:WHOLE_ARCHIVE,ortools::ortools> instead of ortools::ortools when target_link_libraries to ortools ?
IIRC math_opt use some global singleton to "register" each solver and this code is dropped by linker 🤡
e.g.

MATH_OPT_REGISTER_SOLVER(SOLVER_TYPE_PDLP, PdlpSolver::New);

Otherwise, I will need at least your OS, the CMake generator used etc so I can reproduce it easily...
note: Will try to hack my cmake template project to test and dev a MRE....
ref https://github.com/or-tools/cmake_or-tools

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pet-mit
Comment options

Answer selected by pet-mit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants