How to preserve single quotes in a CMake cached variable?
问题 I have a variable SET(CODE_COVERAGE_EXCLUSION_LIST "" CACHE STRING "List of resources to exclude from code coverage analysis") It must contain a list of expressions such as : 'tests/*' '/usr/*' When trying to set the default value to the above expressions, the single quotes are removed. How to preserve them ? Moreover, when I try to pass the exclusion list like this cmake -DCODE_COVERAGE_EXCLUSION_LIST="'tests/*' '/usr/*'" .. The initial and final single quotes are lost. How to preserve them