You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/FPHSA/FindCustomMessage.cmake

18 lines
640 B

# pseudo find_module
if (REASON_FAILURE_MESSAGE)
list (PREPEND REASON_FAILURE_MESSAGE "REASON_FAILURE_MESSAGE")
endif()
include(FindPackageHandleStandardArgs)
if (CONFIG_MODE)
find_package (CustomMessage QUIET CONFIG HINTS "${CMAKE_MODULE_PATH}")
find_package_handle_standard_args(CustomMessage CONFIG_MODE
${REASON_FAILURE_MESSAGE})
else()
find_package_handle_standard_args(CustomMessage REQUIRED_VARS FOOBAR
VERSION_VAR CustomMessage_VERSION
${REASON_FAILURE_MESSAGE})
endif()