mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Teach the find_package, find_library, find_program, find_path, and find_file commands to print debug log messages when enabled by the `--debug-find` command-line option or `CMAKE_FIND_DEBUG_MODE` variable.
5 lines
141 B
CMake
5 lines
141 B
CMake
set(CMAKE_FIND_DEBUG_MODE ON)
|
|
find_package(NotHere CONFIG)
|
|
message(WARNING "This warning must be reachable.")
|
|
set(CMAKE_FIND_DEBUG_MODE OFF)
|