-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake Error: The source directory "/src" does not appear to contain CMakeLists.txt. #3162
Comments
It seems that you need to run
|
~/bpftrace$ docker build -f build/Dockerfile.ubuntu -f build/Dockerfile.ubuntu or -f docker/Dockerfile.ubuntu result in same error |
Sorry, should have been
(with the |
@dubeyabhishek any update here? Did you have a chance to try to last command I sent? |
@viktormalik Thanks! On the upstream, its working smooth. How do we run tests with -DBUILD_TESTING=ON in docker file? How about RUN make test -C /build -j$(nproc) ? |
It depends on which tests you want to run:
Running |
Thanks @viktormalik . Closing the issue. |
~/bpftrace/docker$ docker build - < Dockerfile.ubuntu
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
STEP 1/8: FROM ubuntu:devel
STEP 2/8: ARG DEBIAN_FRONTEND=noninteractive
--> Using cache 6614fa8827d9b181d1f1e5c9b6494e6596a62c25d3c913e53464a6ee7917ecbc
--> 6614fa8827d
STEP 3/8: RUN apt-get update && apt-get install -y asciidoctor binutils-dev bison build-essential clang cmake flex libbpf-dev libbpfcc-dev libcereal-dev libdw-dev libelf-dev libiberty-dev libpcap-dev llvm-dev libclang-dev systemtap-sdt-dev zlib1g-dev
--> Using cache 183061c9baab2571a0ba4cbdd73b44c08c6ea17cc2cd5d95f9830178ee66840e
--> 183061c9baa
STEP 4/8: COPY . /src
--> Using cache 7a76b9945f31d2762ac95f3f995d696e5bbc7136c02ed5223b2549c1e34df19e
--> 7a76b9945f3
STEP 5/8: WORKDIR /src
--> Using cache de9d26347bb8287e918c2ea6ae154beea5a10dfd770272ff382ad930445b0734
--> de9d26347bb
STEP 6/8: RUN cmake -B /build -DBUILD_TESTING=ON
CMake Error: The source directory "/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
Error: error building at STEP "RUN cmake -B /build -DBUILD_TESTING=ON": error while running runtime: exit status 1
do we need to put efforts to fix the script or am I missing something here?
The text was updated successfully, but these errors were encountered: