Files
CMake/Tests/RunCMake/PackageInfo/MinimalVersion.cmake
T
Matthew Woehlke f04dd93c47 cmExportPackageInfoGenerator: Fix version properties
Fix a small bug in cmExportPackageInfoGenerator that caused extended
version properties ("compat_version", "version_schema")) to be emitted
when empty. Add a test to ensure this is working as intended.

Fixes: #26264
2024-10-17 14:57:38 -04:00

20 lines
337 B
CMake

add_library(foo INTERFACE)
install(TARGETS foo EXPORT foo DESTINATION .)
install(PACKAGE_INFO foo1
EXPORT foo
VERSION 1.0
DESTINATION cps)
install(PACKAGE_INFO foo2
EXPORT foo
VERSION 1.5
COMPAT_VERSION 1.0
DESTINATION cps)
install(PACKAGE_INFO foo3
EXPORT foo
VERSION 1.0
VERSION_SCHEMA simple
DESTINATION cps)