Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

space in filename creates errors #10

Open
sibebleuze opened this issue Feb 18, 2021 · 0 comments
Open

space in filename creates errors #10

sibebleuze opened this issue Feb 18, 2021 · 0 comments

Comments

@sibebleuze
Copy link

When the plugin is used to add a single file to the CMakeLists.txt file, it doesn't look too closely at the filename.
This has as one of its effects that a file such as 'an example.cpp', which does not give any trouble otherwise, is added to CMakeLists.txt like this: add_executable(an example "an example.cpp")
This will result in a CMake error: "Cannot find source file: example", because the cpp file itself is encapsulated in quotation marks, but the executable name is not. I don't know if it can be (I'm only just starting out in C++ myself), but I think it could be easily fixed by replacing all spaces in the executable name with underscores for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant