Skip to content

Commit

Permalink
Merge pull request #325 from robotology/fix-ipopt-include-dirs
Browse files Browse the repository at this point in the history
Fix find_path call to search for IPOPT_INCLUDE_DIRS
  • Loading branch information
drdanz authored Mar 25, 2020
2 parents 5a521f4 + 9dcb6c4 commit 80711af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions find-modules/FindIPOPT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if(NOT WIN32)
set(IPOPT_DIR /usr CACHE PATH "Path to IPOPT build directory")
endif()

find_path(IPOPT_INCLUDE_DIRS NAMES IpIpoptApplication.hpp coin/IpIpoptApplication.hpp PATHS ${IPOPT_DIR}/include/coin)
find_path(IPOPT_INCLUDE_DIRS NAMES IpIpoptApplication.hpp PATH_SUFFIXES coin PATHS ${IPOPT_DIR}/include/coin)

find_library(IPOPT_LIBRARIES ipopt ${IPOPT_DIR}/lib
${IPOPT_DIR}/lib/coin)
Expand Down Expand Up @@ -128,7 +128,7 @@ else()

set(IPOPT_DIR $ENV{IPOPT_DIR} CACHE PATH "Path to IPOPT build directory")

find_path(IPOPT_INCLUDE_DIRS NAMES IpIpoptApplication.hpp coin/IpIpoptApplication.hpp PATHS ${IPOPT_DIR}/include/coin)
find_path(IPOPT_INCLUDE_DIRS NAMES IpIpoptApplication.hpp PATH_SUFFIXES coin PATHS ${IPOPT_DIR}/include/coin)

find_library(IPOPT_IPOPT_LIBRARY_RELEASE libipopt ${IPOPT_DIR}/lib
${IPOPT_DIR}/lib/coin)
Expand Down

0 comments on commit 80711af

Please sign in to comment.