InsightSoftwareConsortium / InsightSoftwareConsortium/ITK-Wasm

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

Open
#1,436 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
235
Forks
61
Avg merge
4d 19h
Merged PRs (30d)
4

Description

Following the instructions of the [hello-world tutorial](https://docs.itk.org/projects/wasm/en/latest/cxx/tutorial/hello_world.html). 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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.