Commit 3b172024 authored by Ben Boeckel's avatar Ben Boeckel

cmake: output the formatters that are enabled

parent 3c9927dd
Pipeline #47214 passed with stage
......@@ -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