Files
CMake/Tests/RunCMake/find_package/MissingConfigDebug.cmake
Robert Maynard 204b8d9f4e find_*: Use debug logging infrastructure
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.
2019-12-19 08:09:49 -05:00

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)