[CMake] Complete quoting for parameters of some command examples

SF Markus Elfring elfring at users.sourceforge.net
Sun Feb 27 10:44:59 EST 2011


Hello,

I have read the CMake documentation.
http://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes.

Now I find that more parameters should be enclosed by quotation marks.

Examples:
- Frequently asked questions and corresponding answers
  ${CMAKE_CURRENT_SOURCE_DIR}/someinput.txt
  ${FOO_BINARY_DIR}/output1.cpp

http://cmake.org/Wiki/CMake_FAQ#How_do_I_generate_an_executable.2C_then_use_the_executable_to_generate_a_file.3F

- Article "How To Write Platform Checks"
  ${CMAKE_CURRENT_BINARY_DIR}/config.h
  http://cmake.org/Wiki/CMake:How_To_Write_Platform_Checks

- Article "How To Build Qt4 Software"
  ${CMAKE_CURRENT_SOURCE_DIR}/a_header.h

http://cmake.org/Wiki/CMake:How_To_Build_Qt4_Software#Configuring_CMake_to_Help_Translate


Would you like to be better prepared for the handling of path/file names that
contain "special" characters like spaces?

Are there more script examples which need corresponding adjustments?

Regards,
Markus


More information about the CMake mailing list