Skip to content

CMake Error: Expected a command name, got unquoted argument with text #1

@emilio-cartoni

Description

@emilio-cartoni

When building the new version (1fa0a77) of the repository (i.e. when doing the catkin_make -j8), we got the following error:

CMake Error at CMakeLists.txt:1:
Parse error. Expected a command name, got unquoted argument with text
"/opt/ros/noetic/share/catkin/cmake/toplevel.cmake".

We then followed an advice in Stackoverflow and deleted the file src/CMakeLists.txt.
After that, catkin_make -j8 compiled sucessfully.
Not sure why this happened since src/CMakeLists.txt existed in previous version and we didn't encounter the error, but I am reporting it here in case it happens to someone else.

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