[cmake-developers] Bug: CMakePackageConfigHelpers can't cope with empty install prefix

rleigh at codelibre.net rleigh at codelibre.net
Mon Aug 10 10:21:33 EDT 2015


I often configure projects with an empty install prefix and install with
DESTDIR set.  This works for most projects and they are relocatable. 
However, the configure_package_config_file function breaks if this is
done:

CMake Error at cmake/CMakePackageConfigHelpers.cmake:254 (file):
  file RELATIVE_PATH must be passed a full path to the file:
Call Stack (most recent call first):
  CMakeLists.txt:157 (configure_package_config_file)

It can't cope with this case.  It would be nice if it was able to cope
with this situation since the work it's doing is intended to make the
configuration relocatable.


Regards,
Roger Leigh



More information about the cmake-developers mailing list