mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 15:49:08 -05:00
f04dd93c47
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
20 lines
337 B
CMake
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)
|