mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-25 16:09:42 -06:00
Both track when a `_DIR` variable is already defined and suppress implicit event reporting when a mode that has no reliable method for such detection.
44 lines
1.1 KiB
CMake
44 lines
1.1 KiB
CMake
# 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")
|