CMake/Help
Brad King 31f73eb12d get_filename_component: Revise PROGRAM/PROGRAM_ARGS split semantics
The KWSys `SystemTools::SplitProgramFromArgs` implementation goes into
an infinite loop when the value is just " " (a space).  Since the
"program path with unquoted spaces plus command-line arguments"
operation it is trying to provide is poorly defined (string parsing
should not depend on filesystem content), just stop using it.

Instead consider the main two use cases the old approach tried to handle:

* The value is the name or absolute path of a program with no quoting
  or escaping, but also no command-line arguments.  In this case we
  can use the value as given with no parsing, and assume no arguments.

* The value is a command-line string containing the program name/path
  plus arguments.  In this case we now assume that the command line
  is properly quoted or escaped.

Fixes: #17262
2017-09-13 10:47:04 -04:00
..
command Merge topic 'vs_improve_custom_command' 2017-09-11 07:53:18 -04:00
dev Help/dev: Add commit reference format to review process guide 2017-08-29 13:01:47 -04:00
generator VS: Choose VS 2017 instance via environment variable 2017-07-10 11:08:11 -04:00
include Help: Reorganize and refine discussion of relocatable packages 2015-04-03 10:52:24 -04:00
manual Autogen: Doc: Add Visual Studio PRE_BUILD note to cmake-qt.rst 2017-09-07 18:03:14 +02:00
module FindPatch: Add module to find 'patch' command-line tool 2017-09-01 11:46:28 -04:00
policy Merge topic 'doc-CMP0069-typos' 2017-08-10 09:06:58 -04:00
prop_cache
prop_dir Merge topic 'test_include_files' 2017-07-13 07:46:47 -04:00
prop_gbl Add GENERATOR_IS_MULTI_CONFIG global property 2017-04-04 09:49:00 -04:00
prop_inst CPackWIX: Add new CPACK_STARTUP_SHORTCUTS property. 2015-02-21 18:07:36 +01:00
prop_sf Help: Document HEADER_FILE_ONLY use case 2017-05-09 11:46:29 -04:00
prop_test Help: Update documentation for PROCESSORS test property 2017-09-08 10:03:53 -04:00
prop_tgt Add properties to run cppcheck along with the compiler 2017-08-30 10:23:46 -04:00
release get_filename_component: Revise PROGRAM/PROGRAM_ARGS split semantics 2017-09-13 10:47:04 -04:00
variable Flang: Add support for flang Fortran compiler 2017-08-31 15:24:59 -04:00
index.rst cmake-server: Add documentation 2016-09-19 08:57:58 -04:00