Hi everyone, I'm trying to figure out a way to escape the special keywords that are used to introduce named options in function arguments (see CMakeParseArguments [1]), for example to pass the string RESULT_VARIABLE as argument to a command executed via execute_process():
set(what "RESULT_VARIABLE") execute_process(COMMAND echo ${what}) Example result: CMake Error at CMakeLists.txt:2 (execute_process): execute_process called with no value for RESULT_VARIABLE. The documentation doesn't seem to mention anything, nor did I see a solution for this in CMakeParseArguments.cmake. Is there a way to do that, or do I have to just accept that some argument values will crash CMake? That would be a bummer. I'd appreciate any pointers, -- Rémi Rampin [1] http://www.cmake.org/cmake/help/v3.0/module/CMakeParseArguments.html -- 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://public.kitware.com/mailman/listinfo/cmake