mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
8d7e80cf3d
Fixes: #22775
17 lines
504 B
CMake
17 lines
504 B
CMake
|
|
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
# when REGISTRY_VIEW is not specified, should not be defined in module
|
|
set (EXPECTED_REGISTRY_VIEW "UNDEFINED")
|
|
find_package(RegistryView)
|
|
|
|
# query package to check if variable is propagated correctly
|
|
set(EXPECTED_REGISTRY_VIEW "TARGET")
|
|
find_package(RegistryView REGISTRY_VIEW TARGET)
|
|
|
|
set(EXPECTED_REGISTRY_VIEW "64_32")
|
|
find_package(RegistryView REGISTRY_VIEW 64_32)
|
|
|
|
set(EXPECTED_REGISTRY_VIEW "32")
|
|
find_package(RegistryView REGISTRY_VIEW 32)
|