mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -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.
42 lines
1.1 KiB
CMake
42 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(ViaModule MODULE)
|
|
|
|
message("NotFound -> NotFound")
|
|
message(CONFIGURE_LOG "NotFound -> NotFound")
|
|
find_package(ViaModule MODULE)
|
|
|
|
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(ViaModule MODULE)
|
|
|
|
message("Found -> Found")
|
|
message(CONFIGURE_LOG "Found -> Found")
|
|
find_package(ViaModule MODULE)
|
|
|
|
message("Found -> NotFound")
|
|
message(CONFIGURE_LOG "Found -> NotFound")
|
|
list(REMOVE_AT CMAKE_PREFIX_PATH 0)
|
|
list(REMOVE_AT CMAKE_MODULE_PATH 0)
|
|
unset(ViaModule_FOUND)
|
|
|
|
find_package(ViaModule MODULE)
|
|
|
|
message("END")
|
|
message(CONFIGURE_LOG "END")
|