mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 18:51:05 -05:00
c42d82d569
When projects explicitly unset variables, the transition detection can end up reporting events when they are not desired. See: #24833
46 lines
1.2 KiB
CMake
46 lines
1.2 KiB
CMake
set(CMAKE_FIND_DEBUG_MODE_NO_IMPLICIT_CONFIGURE_LOG 1)
|
|
|
|
# Stable sorting for predictable behaviors.
|
|
set(CMAKE_FIND_PACKAGE_SORT_ORDER NAME)
|
|
|
|
# Unset search variables for more predictable output.
|
|
unset(CMAKE_FRAMEWORK_PATH)
|
|
unset(CMAKE_APPBUNDLE_PATH)
|
|
unset(ENV{CMAKE_PREFIX_PATH})
|
|
unset(ENV{CMAKE_FRAMEWORK_PATH})
|
|
unset(ENV{CMAKE_APPBUNDLE_PATH})
|
|
|
|
message("NotDefined -> NotFound")
|
|
message(CONFIGURE_LOG "NotDefined -> NotFound")
|
|
find_package(ViaConfig)
|
|
|
|
message("NotFound -> NotFound")
|
|
message(CONFIGURE_LOG "NotFound -> NotFound")
|
|
find_package(ViaConfig)
|
|
|
|
list(INSERT CMAKE_MODULE_PATH 0
|
|
"${CMAKE_CURRENT_LIST_DIR}/ConfigureLog/cmake")
|
|
list(INSERT CMAKE_PREFIX_PATH 0
|
|
"${CMAKE_CURRENT_LIST_DIR}/ConfigureLog")
|
|
|
|
message("NotFound -> Found")
|
|
message(CONFIGURE_LOG "NotFound -> Found")
|
|
find_package(ViaConfig)
|
|
|
|
message("Found -> Found")
|
|
message(CONFIGURE_LOG "Found -> Found")
|
|
find_package(ViaConfig)
|
|
|
|
message("Found -> NotFound")
|
|
message(CONFIGURE_LOG "Found -> NotFound")
|
|
list(REMOVE_AT CMAKE_PREFIX_PATH 0)
|
|
list(REMOVE_AT CMAKE_MODULE_PATH 0)
|
|
set_property(CACHE ViaConfig_DIR
|
|
PROPERTY
|
|
VALUE "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
find_package(ViaConfig)
|
|
|
|
message("END")
|
|
message(CONFIGURE_LOG "END")
|