Blake Bender created GEODE-6160:
-----------------------------------
Summary: CPack ignore syntax isn't properly escaped
Key: GEODE-6160
URL: https://issues.apache.org/jira/browse/GEODE-6160
Project: Geode
Issue Type: Bug
Components: native client
Reporter: Blake Bender
In our .cpackignore file, we have lines of the form "\.foo", for example, but
the regex syntax also has to be escaped like a C string for some reason, aka
"\\.foo".
Repro steps:
* Configure using cmake in a clean repo
* cd into cmake build dir
* run `cpack -G TGZ ---config CPackSourceConfig.cmake` to generate a source
package
Expected result
* Source package generated without complaints
Actual result
* Source package generated
* cpack complains about syntax, for example:
```
CMake Warning (dev) at
/Users/pivotal/Workspace/cmake-build-debug/geode-native/CPackSourceConfig.cmake:74
(set):
Syntax error in cmake code at
/Users/pivotal/Workspace/cmake-build-debug/geode-native/CPackSourceConfig.cmake:74
when parsing string
/\.git/;/\.DS_Store;/build-.*/;/build/;/\.settings/;/\.cproject;/\.project;/\.idea/;\.vs/;\.vscode/;/examples/dotnet/.*/bin/;/examples/dotnet/.*/obj/;\.ruby-version
Invalid escape sequence \.
```
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)