Commit 9788b61b authored by Ansgar Burchardt's avatar Ansgar Burchardt

FindIPOpt.cmake: add IPOPT_ROOT variable

This matches how to specify search directories for optional
dependencies in DUNE's core modules.
parent 9ff9a5ba
Pipeline #14575 passed with stage
in 6 minutes and 13 seconds
......@@ -8,18 +8,33 @@ find_library(DL_LIBRARY dl)
find_path(IPOPT_INCLUDE_DIR
NAMES "IpNLP.hpp"
PATHS ${IPOPT_ROOT}
PATH_SUFFIXES "include" "include/coin"
NO_DEFAULT_PATH
)
find_path(IPOPT_INCLUDE_DIR
NAMES "IpNLP.hpp"
)
find_library(IPOPT_LIBRARY
NAMES ipopt
PATHS ${IPOPT_ROOT}
PATH_SUFFIXES "lib"
NO_DEFAULT_PATH
)
find_library(IPOPT_LIBRARY
NAMES ipopt
)
# If you want to want to use other linear solver
find_library(HSL_LIBRARY
NAMES hsl coinhsl
PATHS ${IPOPT_ROOT}
PATH_SUFFIXES "lib"
NO_DEFAULT_PATH
)
find_library(HSL_LIBRARY
NAMES hsl coinhsl
)
find_package_handle_standard_args(hsl DEFAULT_MSG HSL_LIBRARY)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment