mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-21 21:58:50 -05:00
2f1ffa003c
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.
8 lines
233 B
CMake
8 lines
233 B
CMake
add_library(imported_global_target SHARED IMPORTED GLOBAL)
|
|
add_executable(imported_global_ex IMPORTED GLOBAL)
|
|
|
|
add_library(imported_local_target SHARED IMPORTED)
|
|
add_executable(imported_local_ex IMPORTED)
|
|
|
|
find_package(SimpleTarget)
|