SingleFileExecutionPlugin icon indicating copy to clipboard operation
SingleFileExecutionPlugin copied to clipboard

space in filename creates errors

Open sibebleuze opened this issue 3 years ago • 0 comments

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.

sibebleuze avatar Feb 18 '21 11:02 sibebleuze