cmake/Tests/RunCMake/CMP0106/CMP0106-Common.cmake

11 lines
373 B
CMake
Raw Normal View History

2020-08-30 11:54:41 +02:00
include(Documentation OPTIONAL RESULT_VARIABLE found)
if (NOT should_find AND found)
message(FATAL_ERROR
"The Documentation module should not have been found, but it was.")
endif ()
if (should_find AND NOT found)
message(FATAL_ERROR
"The Documentation module should have been found, but it was not.")
endif ()
include(${CMAKE_ROOT}/Modules/Documentation.cmake)