chrono
chrono copied to clipboard
ChronoConfig.cmake isn't installed in correct folder
Building Chrono 4.0.0, the CMake config. script get installed as <prefix>/<libdir>/cmake/ChronoConfig.cmake
. This is somehow unfortunate because this is not a location CMake's find_package()
search procedure would search for ChronoConfig.cmake
, leading to errors of the kind:
-- Could NOT find Chrono (missing: Chrono_DIR)
I believe a better location would be <prefix>/<libdir>/cmake/Chrono/ChronoConfig.cmake
which would allow something like the snippet below to just work:
find_package(
Chrono CONFIG
HINTS
"${prefix}")
A workaround would be something like:
set(Chrono_DIR "${prefix}/lib/cmake")
find_package(
Chrono CONFIG)
fix in https://github.com/projectchrono/chrono/pull/421