COIN-OR::LEMON - Graph Library

Opened 5 years ago

#628 new defect

make find package failed

Reported by: zhaofeng-shu33 Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.4 release
Component: core Version: release branch 1.3
Keywords: Cc:
Revision id:

Description

On Ubuntu >= 18.04, after installing liblemon by make install and use it in other packages, cmake throws error:

By not providing "Findlemon.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "lemon", but CMake did not find one.

Could not find a package configuration file provided by "lemon" with any of the following names:

lemonConfig.cmake lemon-config.cmake

Add the installation prefix of "lemon" to CMAKE_PREFIX_PATH or set "lemon_DIR" to a directory containing one of the above files. If "lemon" provides a separate development package or SDK, be sure it has been installed.

I use CMake Version >= 3.10

How to fix: LEMONConfig.cmake should be changed to lemonConfig.cmake in root CMakeLists.txt. ` IF(UNIX)

INSTALL(

FILES ${PROJECT_BINARY_DIR}/cmake/LEMONConfig.cmake DESTINATION share/lemon/cmake

)

`

Change History (0)

Note: See TracTickets for help on using tickets.