Commit e5a303df authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed ipopt finder to not define ipopt if it is not there

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@105 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 36a125bc
......@@ -10,16 +10,16 @@ if (WIN32)
${IPOPT_DIR}/include
)
find_library( IPOPT_LIBRARY_RELEASE
Ipopt
PATHS "C:\\libs\\Ipopt-3.8.2\\lib\\win32\\release" )
find_library( IPOPT_LIBRARY_DEBUG
Ipopt
PATHS "C:\\libs\\Ipopt-3.8.2\\lib\\win32\\debug" )
IF(IPOPT_INCLUDE_DIR)
find_library( IPOPT_LIBRARY_RELEASE
Ipopt
PATHS "C:\\libs\\Ipopt-3.8.2\\lib\\win32\\release" )
find_library( IPOPT_LIBRARY_DEBUG
Ipopt
PATHS "C:\\libs\\Ipopt-3.8.2\\lib\\win32\\debug" )
set ( IPOPT_LIBRARY "optimized;${IPOPT_LIBRARY_RELEASE};debug;${IPOPT_LIBRARY_DEBUG}" CACHE STRING "IPOPT Libraries" )
set ( IPOPT_LIBRARY "optimized;${IPOPT_LIBRARY_RELEASE};debug;${IPOPT_LIBRARY_DEBUG}" CACHE STRING "IPOPT Libraries" )
IF(IPOPT_INCLUDE_DIR)
SET(IPOPT_FOUND TRUE)
SET(IPOPT_INCLUDE_DIR ${IPOPT_INCLUDE_DIR})
# Todo, set right version depending on build type (debug/release)
......
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