mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-18 04:31:26 -06:00
Allow find package to promote scope of imported targets by specifying
an argument to `find_package` or by specifying a CMake variable.
* Add support for CMAKE_GLOBAL_IMPORT_SCOPE variable
* Add support for GLOBAL argument to find_package
Additionally add testing for above features.
6 lines
216 B
CMake
6 lines
216 B
CMake
add_library(imported_global_lib SHARED IMPORTED GLOBAL)
|
|
add_executable(imported_explicit_global_ex IMPORTED GLOBAL)
|
|
|
|
add_library(imported_local_lib SHARED IMPORTED)
|
|
add_executable(imported_implied_local_ex IMPORTED)
|