Open
Description
Describe the bug
Using any characters that are not legal for C identifiers in the project names causes compiler errors (except
(space) which is handled already).
To Reproduce
Steps to reproduce the behavior:
- Create a new C/C++ Project
- Choose CMake project (the small Hello World example)
- Create a project name with
-
(dashes) in it - Attempt to build project
For example, call the project example-cmake-project
and observe that the config.h.in is invalid C code:
#define example-cmake-project_VERSION_MAJOR @example-cmake-project_VERSION_MAJOR@
#define example-cmake-project_VERSION_MINOR @example-cmake-project_VERSION_MINOR@
PR #105 introduced the config.h.in file and it does have special handling for spaces, but needs it for other characters too:
cc: @mbooth101