From ada528dc4b71cb5cc16902aea2b9e16b3f4b53f2 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Wed, 1 Jul 2020 15:56:19 +0300 Subject: Fix Sphinx warning about cmake code block Lexer for CMake could not parse this broken grammar, because it is ".cmake.in", not just ".cmake". CMake itself solves this problems by declaring such code blocks as generic "::" blocks instead. For example, take a look at the last code block at CMakePackageConfigHelpers help page: - https://cmake.org/cmake/help/v3.18/module/CMakePackageConfigHelpers.html#example-generating-package-files - https://github.com/Kitware/CMake/blob/0464298956a204578aa8421ca0b84c089a97e0aa/Modules/CMakePackageConfigHelpers.cmake#L208 --- modules/ECMSetupQtPluginMacroNames.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ECMSetupQtPluginMacroNames.cmake b/modules/ECMSetupQtPluginMacroNames.cmake index 9612f462..e4a03ba5 100644 --- a/modules/ECMSetupQtPluginMacroNames.cmake +++ b/modules/ECMSetupQtPluginMacroNames.cmake @@ -86,7 +86,7 @@ # and that way will ensure that in the 3rd-party plugin's buildsystem # automoc is instructed as well as needed: # -# .. code-block:: cmake +# :: # # @PACKAGE_SETUP_AUTOMOC_VARIABLES@ # -- cgit v1.2.1