mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-27 04:09:36 +03: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)
|