mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-08 08:09:42 -06:00
Add version validation to cmExportPackageInfoGenerator. Specifically, if a package uses the "simple" version schema (which is the default if no schema is specified), validate that the specified version actually conforms to the schema and issue an error if it does not. Also, issue a warning if the schema is not recognized.
6 lines
172 B
CMake
6 lines
172 B
CMake
add_library(foo INTERFACE)
|
|
install(TARGETS foo EXPORT foo DESTINATION .)
|
|
|
|
# Try exporting a non-conforming version.
|
|
install(PACKAGE_INFO foo EXPORT foo VERSION "1.2.3rc1")
|