Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conf/FindIPOPT.cmake
Original file line number Diff line number Diff line change
@@ -60,7 +60,10 @@ if(NOT WIN32)
find_library(${_LIBRARY}_PATH
NAMES ${_LIBRARY}
PATHS ${_PC_IPOPT_LIBRARY_DIRS})
list(APPEND IPOPT_LIBRARIES ${${_LIBRARY}_PATH})
# Workaround for https://github.com/robotology/icub-main/issues/418
if(${_LIBRARY}_PATH)
list(APPEND IPOPT_LIBRARIES ${${_LIBRARY}_PATH})
endif()
endforeach()
else()
set(IPOPT_DEFINITIONS "")

0 comments on commit 278d1eb

Please sign in to comment.