run cmake pointing it to the source directory

Building & Installing (

One nice and highly recommended feature of CMake is the ability to do out of source builds. In this way you can make all your .o files, various temporary depend files, and even the binary executables without cluttering up your source tree. To use out of source builds, first create a build directory, then change into your build directory and run cmake pointing it to the source directory:

mkdir build && cd build cmake … -DCMAKE_INSTALL_PREFIX=/opt/local

Hi, which is the source directory? Is it aviso-fes code folder which contains CMakeLists.txt? Please guide.

If I run this command (cmake … -DCMAKE_INSTALL_PREFIX=/opt/local) it responts that the build directory does not contain CMakeLists.txt. But CMakeLists.txt is already present in aviso-fes code folder


Can you share how you made the directory you performed mkdir in? It should probably be a clone of the CNES/aviso-fes project.

1 Like

Dear Sir,
As code’s installation instructions say:

  1. installed Anaconda, created new enviroment and activated.
  2. installed software using conda command (conda install pyfes -c fbriol). This command install the software and the necessary dependencies
  3. ran ( mkdir build && cd build)
  4. now at this step…ran this line( cmake … -DCMAKE_INSTALL_PREFIX=/opt/local)

There are too many ... in your command line!

Please try it in this way:
cmake -G Ninja -B build -S . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/local --fresh

1 Like

Then why do you need to build it? This sounds like it is already built to me. If this is for development, you’ll need to find where Anaconda placed the source tree and cd there before the mkdir commands.

1 Like