mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-09 16:50:01 -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
171 B
CMake
6 lines
171 B
CMake
add_library(foo INTERFACE)
|
|
install(TARGETS foo EXPORT foo DESTINATION .)
|
|
|
|
# Try exporting a non-conforming version.
|
|
export(EXPORT foo PACKAGE_INFO foo VERSION "1.2.3rc1")
|