[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: [CMake] Clarification for quoting of parameters for "configure_file()"
From: SF Markus Elfring <elfring () users ! sourceforge ! net>
Date: 2014-03-31 17:29:38
Message-ID: 5339A602.3080003 () users ! sourceforge ! net
[Download RAW message or body]
Hello,
A wiki article mentions some details about how parameters are handled for CMake
commands.
http://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes.
I would like to try out the following command with unquoted parameters in a
small build script.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/t1.txt.in
${CMAKE_CURRENT_BINARY_DIR}/t1.txt @ONLY)
The application "CMake GUI 2.8.12.2" reports some "internal errors" as I would
expect it if I dare to use the following setting.
CMAKE_CURRENT_SOURCE_DIR: ... /Probe/quoting/contains s p a c e s;COPYONLY
ESCAPE_QUOTES
CMAKE_CURRENT_BINARY_DIR: ... /build/quoting/contains s p a c e s;COPYONLY
ESCAPE_QUOTES
But I wonder about the result that the configuration command works if the shown
file names do not contain semicolons.
http://cmake.org/cmake/help/cmake_tutorial.html#s1
Would you like to explain such an observation?
Regards,
Markus
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic