[CMake] Determine the directory to install package config and version files (like /usr/lib/cmake)
Daniel Wyatt
daniel.wyatt at gmail.com
Sat Jun 16 21:15:11 EDT 2018
Is there a way to determine this directory?
Right now I have something like:
${CMAKE_INSTALL_LIBDIR}/cmake/<project-name>/something-version.cmake
On CentOS 7 w/cmake3, however, this should be /usr/lib/cmake3/...
Obviously I can just check to see if this directory exists and then fall
back,
but I'm wondering if there is a bultin variable to retrieve this (I've
looked, but no luck so far).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180616/6757ad3d/attachment.html>
More information about the CMake
mailing list