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

Can not find IPOPT #8

Open
fuhang1987 opened this issue Aug 24, 2020 · 1 comment
Open

Can not find IPOPT #8

fuhang1987 opened this issue Aug 24, 2020 · 1 comment

Comments

@fuhang1987
Copy link

CMakeLists.txt:24: error: By not providing "FindIPOPT.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "IPOPT", but CMake did not find one. Could not find a package configuration file provided by "IPOPT" with any of the following names: IPOPTConfig.cmake ipopt-config.cmake Add the installation prefix of "IPOPT" to CMAKE_PREFIX_PATH or set "IPOPT_DIR" to a directory containing one of the above files. If "IPOPT" provides a separate development package or SDK, be sure it has been installed.

@zerolover
Copy link

replace

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")

with
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

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

No branches or pull requests

2 participants