From 9c963de99854587248d340c38f15eb44c00aeacc Mon Sep 17 00:00:00 2001 From: Nikita Nemkin Date: Fri, 31 Jan 2025 00:10:17 +0500 Subject: [PATCH] Help: Remove stray spaces and one colon --- Help/command/FIND_XXX.txt | 4 ++-- Help/command/add_custom_target.rst | 2 +- Help/command/block.rst | 2 +- Help/command/configure_file.rst | 2 +- Help/command/file.rst | 4 ++-- Help/command/find_package.rst | 4 ++-- Help/command/fltk_wrap_ui.rst | 2 +- Help/command/list.rst | 2 +- Help/command/subdirs.rst | 2 +- Help/cpack_gen/rpm.rst | 2 +- Help/guide/importing-exporting/index.rst | 2 +- Help/guide/tutorial/Complete/CMakeLists.txt | 2 +- Help/manual/cmake.1.rst | 2 +- Help/prop_cache/TYPE.rst | 2 +- Help/prop_tgt/AUTOMOC_DEPEND_FILTERS.rst | 2 +- Modules/CMakeDetermineVSServicePack.cmake | 4 ++-- Modules/WriteBasicConfigVersionFile.cmake | 2 +- 17 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Help/command/FIND_XXX.txt b/Help/command/FIND_XXX.txt index 56c77c1e2b..ab96bd3826 100644 --- a/Help/command/FIND_XXX.txt +++ b/Help/command/FIND_XXX.txt @@ -11,8 +11,8 @@ The general signature is: |FIND_XXX| ( name | |NAMES| - [HINTS [path | ENV var]... ] - [PATHS [path | ENV var]... ] + [HINTS [path | ENV var]...] + [PATHS [path | ENV var]...] [REGISTRY_VIEW (64|32|64_32|32_64|HOST|TARGET|BOTH)] [PATH_SUFFIXES suffix1 [suffix2 ...]] [VALIDATOR function] diff --git a/Help/command/add_custom_target.rst b/Help/command/add_custom_target.rst index b099835458..b574cbabc4 100644 --- a/Help/command/add_custom_target.rst +++ b/Help/command/add_custom_target.rst @@ -7,7 +7,7 @@ Add a target with no output so it will always be built. add_custom_target(Name [ALL] [command1 [args1...]] [COMMAND command2 [args2...] ...] - [DEPENDS depend depend depend ... ] + [DEPENDS depend depend depend ...] [BYPRODUCTS [files...]] [WORKING_DIRECTORY dir] [COMMENT comment] diff --git a/Help/command/block.rst b/Help/command/block.rst index 4c6e111755..da9c483954 100644 --- a/Help/command/block.rst +++ b/Help/command/block.rst @@ -7,7 +7,7 @@ Evaluate a group of commands with a dedicated variable and/or policy scope. .. code-block:: cmake - block([SCOPE_FOR [POLICIES] [VARIABLES] ] [PROPAGATE ...]) + block([SCOPE_FOR [POLICIES] [VARIABLES]] [PROPAGATE ...]) endblock() diff --git a/Help/command/configure_file.rst b/Help/command/configure_file.rst index 7200c241fe..546f9cee69 100644 --- a/Help/command/configure_file.rst +++ b/Help/command/configure_file.rst @@ -13,7 +13,7 @@ Copy a file to another location and modify its contents. [NO_SOURCE_PERMISSIONS | USE_SOURCE_PERMISSIONS | FILE_PERMISSIONS ...] [COPYONLY] [ESCAPE_QUOTES] [@ONLY] - [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ]) + [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF]]) Copies an ```` file to an ```` file while performing `transformations`_ of the input file content. diff --git a/Help/command/file.rst b/Help/command/file.rst index dc9e27b9cf..8a9f6e91f4 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -211,7 +211,7 @@ Writing [CONDITION ] [TARGET ] [NO_SOURCE_PERMISSIONS | USE_SOURCE_PERMISSIONS | FILE_PERMISSIONS ...] - [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ]) + [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF]]) The options are: @@ -293,7 +293,7 @@ Writing file(CONFIGURE OUTPUT CONTENT [ESCAPE_QUOTES] [@ONLY] - [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ]) + [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF]]) :target: CONFIGURE .. versionadded:: 3.18 diff --git a/Help/command/find_package.rst b/Help/command/find_package.rst index 114de1f581..0e32a9c9bf 100644 --- a/Help/command/find_package.rst +++ b/Help/command/find_package.rst @@ -260,8 +260,8 @@ Full Signature [BYPASS_PROVIDER] [NAMES name1 [name2 ...]] [CONFIGS config1 [config2 ...]] - [HINTS path1 [path2 ... ]] - [PATHS path1 [path2 ... ]] + [HINTS path1 [path2 ...]] + [PATHS path1 [path2 ...]] [REGISTRY_VIEW (64|32|64_32|32_64|HOST|TARGET|BOTH)] [PATH_SUFFIXES suffix1 [suffix2 ...]] [NO_DEFAULT_PATH] diff --git a/Help/command/fltk_wrap_ui.rst b/Help/command/fltk_wrap_ui.rst index 66752729d0..448354e39f 100644 --- a/Help/command/fltk_wrap_ui.rst +++ b/Help/command/fltk_wrap_ui.rst @@ -6,7 +6,7 @@ Create FLTK user interfaces Wrappers. .. code-block:: cmake fltk_wrap_ui(resultingLibraryName source1 - source2 ... sourceN ) + source2 ... sourceN) Produce .h and .cxx files for all the .fl and .fld files listed. The resulting .h and .cxx files will be added to a variable named diff --git a/Help/command/list.rst b/Help/command/list.rst index 06b2285c67..0110021824 100644 --- a/Help/command/list.rst +++ b/Help/command/list.rst @@ -236,7 +236,7 @@ For more information on regular expressions look under list(TRANSFORM GENEX_STRIP ...) :target: TRANSFORM_GENEX_STRIP - :command:`REPLACE `: + :command:`REPLACE ` Match the regular expression as many times as possible and substitute the replacement expression for the match for each element of the list (same semantic as :command:`string(REGEX REPLACE)`). diff --git a/Help/command/subdirs.rst b/Help/command/subdirs.rst index ecc6d1fd68..2c42a0b2f5 100644 --- a/Help/command/subdirs.rst +++ b/Help/command/subdirs.rst @@ -10,7 +10,7 @@ Add a list of subdirectories to the build. .. code-block:: cmake subdirs(dir1 dir2 ...[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...] - [PREORDER] ) + [PREORDER]) Add a list of subdirectories to the build. The :command:`add_subdirectory` command should be used instead of ``subdirs`` although ``subdirs`` will still diff --git a/Help/cpack_gen/rpm.rst b/Help/cpack_gen/rpm.rst index 599c6be684..050e654393 100644 --- a/Help/cpack_gen/rpm.rst +++ b/Help/cpack_gen/rpm.rst @@ -526,7 +526,7 @@ List of CPack RPM generator specific variables: May be set by the user in order to specify a USER binary spec file to be used by the CPack RPM generator instead of generating the file. - The specified file will be processed by configure_file( @ONLY). + The specified file will be processed by configure_file(@ONLY). .. variable:: CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE diff --git a/Help/guide/importing-exporting/index.rst b/Help/guide/importing-exporting/index.rst index 89b8554221..cee7909fda 100644 --- a/Help/guide/importing-exporting/index.rst +++ b/Help/guide/importing-exporting/index.rst @@ -319,7 +319,7 @@ were built in its own tree. For example: include(GNUInstallDirs) include(${INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake/MathFunctions/MathFunctionTargets.cmake) - add_executable(myexe src1.c src2.c ) + add_executable(myexe src1.c src2.c) target_link_libraries(myexe PRIVATE MathFunctions::MathFunctions) Line 2 loads the target CMake file. Although we only exported a single diff --git a/Help/guide/tutorial/Complete/CMakeLists.txt b/Help/guide/tutorial/Complete/CMakeLists.txt index 548a82d57d..181c25e594 100644 --- a/Help/guide/tutorial/Complete/CMakeLists.txt +++ b/Help/guide/tutorial/Complete/CMakeLists.txt @@ -121,7 +121,7 @@ install(FILES ) # generate the export targets for the build tree -# needs to be after the install(TARGETS ) command +# needs to be after the install(TARGETS) command export(EXPORT MathFunctionsTargets FILE "${CMAKE_CURRENT_BINARY_DIR}/MathFunctionsTargets.cmake" ) diff --git a/Help/manual/cmake.1.rst b/Help/manual/cmake.1.rst index 8ebde21760..e20cb9c780 100644 --- a/Help/manual/cmake.1.rst +++ b/Help/manual/cmake.1.rst @@ -405,7 +405,7 @@ Options ``json-v1`` Prints each line as a separate JSON document. Each document is - separated by a newline ( ``\n`` ). It is guaranteed that no + separated by a newline (``\n``). It is guaranteed that no newline characters will be present inside a JSON document. .. code-block:: json diff --git a/Help/prop_cache/TYPE.rst b/Help/prop_cache/TYPE.rst index 2a7dc31b98..e004c7573a 100644 --- a/Help/prop_cache/TYPE.rst +++ b/Help/prop_cache/TYPE.rst @@ -21,4 +21,4 @@ determine the widget type. Valid ``TYPE`` values are: ================= ======================================== Generally the ``TYPE`` of a cache entry should be set by the command which -creates it ( :command:`set`, :command:`option`, :command:`find_library`, etc.). +creates it (:command:`set`, :command:`option`, :command:`find_library`, etc.). diff --git a/Help/prop_tgt/AUTOMOC_DEPEND_FILTERS.rst b/Help/prop_tgt/AUTOMOC_DEPEND_FILTERS.rst index ef17aadc30..fec98f6e15 100644 --- a/Help/prop_tgt/AUTOMOC_DEPEND_FILTERS.rst +++ b/Help/prop_tgt/AUTOMOC_DEPEND_FILTERS.rst @@ -58,7 +58,7 @@ In ``CMakeLists.txt`` we add a filter to .. code-block:: c++ - list( APPEND CMAKE_AUTOMOC_DEPEND_FILTERS + list(APPEND CMAKE_AUTOMOC_DEPEND_FILTERS "JSON_FILE_MACRO" "[\n][ \t]*JSON_FILE_MACRO[ \t]*\\([ \t]*\"([^\"]+)\"" ) diff --git a/Modules/CMakeDetermineVSServicePack.cmake b/Modules/CMakeDetermineVSServicePack.cmake index bff02b648e..ed1d0c1ca7 100644 --- a/Modules/CMakeDetermineVSServicePack.cmake +++ b/Modules/CMakeDetermineVSServicePack.cmake @@ -21,8 +21,8 @@ Usage: if(MSVC) include(CMakeDetermineVSServicePack) - DetermineVSServicePack( my_service_pack ) - if( my_service_pack ) + DetermineVSServicePack(my_service_pack) + if(my_service_pack) message(STATUS "Detected: ${my_service_pack}") endif() endif() diff --git a/Modules/WriteBasicConfigVersionFile.cmake b/Modules/WriteBasicConfigVersionFile.cmake index 962a2cce92..ac6013be15 100644 --- a/Modules/WriteBasicConfigVersionFile.cmake +++ b/Modules/WriteBasicConfigVersionFile.cmake @@ -12,7 +12,7 @@ WriteBasicConfigVersionFile .. code-block:: cmake - WRITE_BASIC_CONFIG_VERSION_FILE( filename + WRITE_BASIC_CONFIG_VERSION_FILE(filename [VERSION major.minor.patch] COMPATIBILITY (AnyNewerVersion|SameMajorVersion|SameMinorVersion|ExactVersion) [ARCH_INDEPENDENT]