Skip to content
Snippets Groups Projects
Commit 4640af2a authored by Elias Pipping's avatar Elias Pipping
Browse files

Fix IPOPT check, hopefully

parent df90efae
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,8 @@ find_package_handle_standard_args(hsl DEFAULT_MSG HSL_LIBRARY)
find_package_handle_standard_args(dl DEFAULT_MSG DL_LIBRARY)
find_package_handle_standard_args(Ipopt DEFAULT_MSG IPOPT_INCLUDE_DIR IPOPT_LIBRARY)
set(HAVE_IPOPT ENABLE_IPOPT)
if(IPOPT_FOUND)
set(HAVE_IPOPT ENABLE_IPOPT)
set(DUNE_IPOPT_CFLAGS "-I${IPOPT_INCLUDE_DIR} -DENABLE_IPOPT=1")
set_property(GLOBAL APPEND PROPERTY ALL_PKG_FLAGS "-I${IPOPT_INCLUDE_DIR}")
set(IPOPT_LIBRARY ${IPOPT_LIBRARY})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment