Skip to content
Snippets Groups Projects
Commit 9788b61b authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

FindIPOpt.cmake: add IPOPT_ROOT variable

This matches how to specify search directories for optional
dependencies in DUNE's core modules.
parent 9ff9a5ba
Branches
No related tags found
No related merge requests found
Pipeline #14575 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment