Skip to content

space in filename creates errors #10

@sibebleuze

Description

@sibebleuze

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions