CMake Error : does not appear to contain CMakeLists.txt

Hi everyone
I encounter such an error when installing Geant4!

CMake Error: The source directory “/usr/local/include/geant4-build” does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

Geant4 Version: 10.7.4
_Operating System:_Ubuntu 20.04
Compiler/Version: GCC 11.4.0
_CMake Version:_3.26.5


thanks in advance for your helps

1 Like

You shouldn’t be specifying your build directory as your source directory. You should specify the actual source directory (i.e., where did you unpack the Geant4 tarball?).

1 Like

I followed the instructions on this page:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.