Commit c87839b9 authored by Max Lyon's avatar Max Lyon
Browse files

make ipopt a public dependency

parent 09d504cf
......@@ -283,9 +283,9 @@ if (IPOPT_FOUND)
list( APPEND COMISO_INCLUDE_DIRECTORIES ${IPOPT_INCLUDE_DIRS} )
list( APPEND COMISO_LINK_DIRECTORIES ${IPOPT_LIBRARY_DIRS} )
list( APPEND COMISO_LINK_LIBRARIES ${IPOPT_LIBRARIES} )
target_include_directories(CoMISo PRIVATE ${IPOPT_INCLUDE_DIRS})
target_link_directories (CoMISo PRIVATE ${IPOPT_LIBRARY_DIRS})
target_link_libraries (CoMISo PRIVATE ${IPOPT_LIBRARIES})
target_include_directories(CoMISo PUBLIC ${IPOPT_INCLUDE_DIRS})
target_link_directories (CoMISo PUBLIC ${IPOPT_LIBRARY_DIRS})
target_link_libraries (CoMISo PUBLIC ${IPOPT_LIBRARIES})
if ( IPOPT_HSL_LIBRARY_DIR )
set (COMISO_HSL_CONFIG_FILE_SETTINGS "#define COMISO_HSL_AVAILABLE 1" )
else ()
......
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