Commit e5a0399f authored by Max Lyon's avatar Max Lyon

fix IPOPT finder for windows

parent 6e6b9d44
Pipeline #8764 failed with stages
in 7 minutes and 21 seconds
...@@ -77,11 +77,12 @@ if (WIN32) ...@@ -77,11 +77,12 @@ if (WIN32)
SET(IPOPT_FOUND TRUE) SET(IPOPT_FOUND TRUE)
SET(IPOPT_INCLUDE_DIRS ${IPOPT_INCLUDE_DIR}) SET(IPOPT_INCLUDE_DIRS ${IPOPT_INCLUDE_DIR})
SET(IPOPT_LIBRARY_DIRS ${IPOPT_LIBRARY_DIR}) SET(IPOPT_LIBRARY_DIRS ${IPOPT_LIBRARY_DIR})
set(IPOPT_LIBRARIES "${IPOPT_LIBRARY}" )
# Todo, set right version depending on build type (debug/release) # Todo, set right version depending on build type (debug/release)
#GET_FILENAME_COMPONENT( IPOPT_LIBRARY_DIRS ${GLEW_LIBRARY} PATH ) #GET_FILENAME_COMPONENT( IPOPT_LIBRARY_DIRS ${GLEW_LIBRARY} PATH )
ELSE(IPOPT_INCLUDE_DIR) ELSE(IPOPT_INCLUDE_DIR)
SET(IPOPT_FOUND FALSE) SET(IPOPT_FOUND FALSE)
SET(IPOPT_INCLUDE_DIR ${IPOPT_INCLUDE_DIR}) SET(IPOPT_INCLUDE_DIRS ${IPOPT_INCLUDE_DIR})
ENDIF(IPOPT_INCLUDE_DIR) ENDIF(IPOPT_INCLUDE_DIR)
ELSE( WIN32 ) ELSE( WIN32 )
......
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