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.
18 lines
640 B
18 lines
640 B
5 years ago
|
# 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()
|