mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Modify the `export(EXPORT)` and `install(PACKAGE_INFO)` commands to actually enforce that certain arguments must be non-empty. With respect to `export`, this is mainly targeted at CPS export, but ends up affecting all flavors of `export(EXPORT)` because that is the level at which argument parsing is performed. Also, add unit tests to verify that the new rejection of arguments with missing or empty values is working, update the existing tests due to changes in error reporting, and remove no-longer-needed manual validation of an empty `PACKAGE_INFO` argument.
7 lines
115 B
CMake
7 lines
115 B
CMake
cmake_policy(SET CMP0208 NEW)
|
|
|
|
add_library(foo INTERFACE)
|
|
install(TARGETS foo EXPORT foo)
|
|
|
|
export(EXPORT foo FILE)
|