You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: