Commit d11b0ade authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'configure-warning-messages'

3b172024

 cmake: output the formatters that are enabled
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Brad King's avatarBrad King <brad.king@kitware.com>
Merge-request: !3
parents ddd436e3 3b172024
......@@ -19,7 +19,14 @@ function (add_formatter name)
option("ENABLE_${name}" "Install the ${tool} formatter script" "${tools_exist}")
if (ENABLE_${name})
message(STATUS "Enabling the ${name} formatter.")
if (NOT tools_exist)
message(WARNING
"The ${name} formatter is enabled, but required tools do not exist in PATH.")
endif ()
install_formatter("${name}")
else ()
message(STATUS "Disabling the ${name} formatter.")
endif ()
endfunction ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment