Commit Graph

2 Commits (a6945d046f3f4f53822a5b7cc296a3ad385f11af)

Author SHA1 Message Date
Dave Rigby 87095a9f1f Ensure exported package is relocatable
As per CMake's Importing and Exporting Guide[1],
configure_package_config_file() should be used for configuring the
package configuration file, not the regular configure_file() function.

This ensures that a spdlog package built on one system (with a given
directory tree) can be imported from a different system -
e.g. creating a pre-compiled spdlog package for use on different
systems.

[1]: https://cmake.org/cmake/help/git-stage/guide/importing-exporting/index.html#id8
4 years ago
gabime 87eb569929 More updates to CMake (version support , cmake.in) 6 years ago