Skip to content
  • Daniele E. Domenichelli's avatar
    CMakePackageConfigHelpers: Add INSTALL_PREFIX option · d057bf85
    Daniele E. Domenichelli authored and Brad King's avatar Brad King committed
    This option instructs configure_package_config_file to consider paths
    that are not absolute as relative to the INSTALL_PREFIX directory
    instead of relative to the CMAKE_INSTALL_PREFIX directory.
    
    If this argument is not passed, the default behaviour is to use
    the CMAKE_INSTALL_PREFIX variable.
    
    The new signature is therefore:
    
      configure_package_config_file(<input> <output> INSTALL_DESTINATION <path>
                                                     [PATH_VARS <var1> <var2> ... <varN>]
                                                     [NO_SET_AND_CHECK_MACRO]
                                                     [NO_CHECK_REQUIRED_COMPONENTS_MACRO]
                                                     [INSTALL_PREFIX <path>])
    d057bf85