Fix standard default installation target presence #3264
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Presently, for usage, installation, and packaging of the
fmt
library as transient dependency from third party CMake project, the extraneousFMT_INSTALL
option needs to be set, this option is unexpected, needs to be discovered by users.The CMake installation target for the
fmt
library should be present by default to conform to CMake defaults. Standard installation support simplifies usage in projects. The presence of the target, by default, allows standard CMake transient usage, installation, and packaging of thefmt
library in other projects.The extraneous configuration option can now be removed from projects using the library. Transient usage, packaging, installation follows. It simplifies usage. Users need not discover this option anymore. The library works like others. It would not override pre-installed, or pinned
fmt
library versions by downstream projects from CMake's "first to record, wins" approach which is what allows hierarchical projects to have parent projects override content details of child projects. Now, regular usage just works:Reference: https://cmake.org/cmake/help/latest/module/FetchContent.html