Skip to content

Hello world Cmake error. The source directory "/work" does not appear to contain CMakeLists.txt. #1436

@cvisl

Description

@cvisl

Following the instructions of the hello-world tutorial. I get the following error:

Not searching for unused variables given on the command line.
CMake Error: The source directory "/work" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
ninja: fatal: invalid -j parameter

😵  undefined

My system:

  • Fedora 42
  • Docker 4.37.1
  • npm 10.9.2

I am not aware what happens in the Docker images but it doesn't seem to copy the CMakeLists.txt into the docker image?

My directory contains when I run the instructions (setup and build):

-rw-r--r--. 1   89 Jul 30 11:49 CMakeLists.txt
-rw-r--r--. 1   96 Jul 30 11:56 hello.cxx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions