Releases: TheLartians/PackageProject.cmake
v1.12.0
v1.11.2
What's Changed
- Fix setting of ARCH_INDEPENDENT based on INTERFACE_LIBRARY property by @salman-javed-nz in #39
New Contributors
- @salman-javed-nz made their first contribution in #39
Full Changelog: v1.11.1...v1.11.2
v1.11.1
What's Changed
- Fix potentially invalid macro name in generated version header by @jan-moeller in #38
New Contributors
- @jan-moeller made their first contribution in #38
Full Changelog: v1.11.0...v1.11.1
v1.11.0 - CPack Support
v1.10.0
What's Changed
- Allow to install a target without
INCLUDE_DESTINATION
by @OlivierLDff in #33
New Contributors
- @OlivierLDff made their first contribution in #33
Full Changelog: v1.9.0...v1.10.0
Added INCLUDE_HEADER_PATTERN option
Using the INCLUDE_HEADER_PATTERN
it is now possible to filter installed files inside the PROJECT_INCLUDE_DIR
directory.
What's Changed
- Feature/use file matching patterns by @ClausKlein in #29
Full Changelog: v1.8.0...v1.9.0
Add version component definitions
Using the VERSION
flag with a CMake version identifier (<major>[.<minor>[.<patch>[.<tweak>]]]
) will now also define macros containing integer values for the major, minor, patch and tweak components. They are accessed in C++ by appending the component name to the version macro, e.g. <uppercase package name>_VERSION_MAJOR
.
Thanks to @mscofield0 for the PR!
EXPORT_HEADER
This release adds a new feature: Export Headers!
Simply add the parameter EXPORT_HEADER
, e.g. to EXPORT_HEADER "${PROJECT_NAME}/export.h"
, for CMake to generate an export header next to your version header file. This feature is useful for those writing a libraries that users should be able to link to both statically and dynamically.
Thanks to @ClausKlein for the implementation!
Correctness updates and ARCH_INDEPENDENT option
The project has been updated to provide a cleaner separation of components, sets the install location to a catchable variable as well as other correctness updates. An option ARCH_INDEPENDENT
has been added that allows for architecture independent installations. This is enabled by default for INTERFACE
libraries. See #24 for details.
Fixed version suffix option
Fixes a bug where the flag NO_VERSION_SUFFIX
couldn't be disabled. The option has now been renamed to the named parameter PROJECT_VERSION_SUFFIX
.