CMake/Tests/CMakeCommands/find_package/MissingConfigRequired.cmake
Brad King c5ae733166 find_package: Test that REQUIRED aborts processing correctly
Verify that the command produces a FATAL_ERROR if and only if the
missing package is REQUIRED.
2012-03-07 11:34:59 -05:00

3 lines
95 B
CMake

find_package(NotHere CONFIG REQUIRED)
message(FATAL_ERROR "This error must not be reachable.")