Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix find_path call to search for IPOPT_INCLUDE_DIRS #325

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

traversaro
Copy link
Member

I was using a recent CMake (3.17) on Windows, and for IPOPT_INCLUDE_DIRS the FindIPOPT.cmake script was finding the wrong path C:/robotology/vcpkg/installed/x64-windows/include/coin instead of the correct C:/robotology/vcpkg/installed/x64-windows/include. Note that all uses of IPOPT headers, even in their examples (see https://github.com/coin-or/Ipopt/blob/releases/3.13.1/examples/Cpp_example/MyNLP.hpp) use the direct inclusion of the headers (i.e. #include <IpTNLP.hpp>, not #include <coin/IpTNLP.hpp>.

With this fix, the FindIPOPT.cmake should never find the wrong include path for IPOPT. To be honest, I do not know why it we never noticed this problem, it is possible that something subtle changed at the CMake level in CMake 3.17).

@traversaro traversaro requested review from pattacini and drdanz March 22, 2020 17:02
@drdanz drdanz merged commit 80711af into ycm-0.11 Mar 25, 2020
@drdanz drdanz deleted the fix-ipopt-include-dirs branch March 25, 2020 09:21
@drdanz
Copy link
Member

drdanz commented Mar 25, 2020

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants