Files
CMake/Tests/RunCMake/find_package/PackageRoot/FindLocalTarget.cmake
John Parent 2f1ffa003c find_package: Add support for default GLOBAL imported targets
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.
2022-03-10 12:44:36 -05:00

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)