Re: [CMake] Determine the directory to install package config and version files (like /usr/lib/cmake)

2018-06-16 Thread Craig Scott
On Sun, Jun 17, 2018 at 11:15 AM, Daniel Wyatt wrote: > Is there a way to determine this directory? > > Right now I have something like: > ${CMAKE_INSTALL_LIBDIR}/cmake//something-version.cmake > > On CentOS 7 w/cmake3, however, this should be /usr/lib/cmake3/... > > Obviously I can just check to

[CMake] Determine the directory to install package config and version files (like /usr/lib/cmake)

2018-06-16 Thread Daniel Wyatt
Is there a way to determine this directory? Right now I have something like: ${CMAKE_INSTALL_LIBDIR}/cmake//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 i