Comparing ebiggers:master...cpp-pm:hunter_v1.24 · ebiggers/libdeflate

Commits on Sep 15, 2025

  1. cmake: make installed package relocatable

    Remove the absolute include header path from the install target. The
    created CMake package still has the right include generated:
    ```cmake
    set_target_properties(libdeflate::libdeflate_static PROPERTIES
      INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
    )
    ```
    
    As mentioned in the
    [Creating Relocatable Packages](https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-relocatable-packages)
    section of the CMake documentation packages created with
    `install(EXPORT)` are designed to be relocatable.
    
    This also makes it possible to cache the install directory over multiple
    computer (for example through a package manager).
    Configuration menu

    Browse the repository at this point in the history