FairRootGroup / FairRoot

C++ simulation, reconstruction and analysis framework for particle physics experiments
http://fairroot.gsi.de
Other
57 stars 96 forks source link

ERROR during installation: doing cmake -DCMAKE_INSTALL_PREFIX="~/fair_install/FairRoot/install" .. ( CMake Error at CMakeLists.txt:79 (find_package): ) #1572

Closed LeoFoorm closed 1 month ago

LeoFoorm commented 1 month ago

Describe the bug I have already installed successfully FairSoft. I 've already done export SIMPATH=~/fair_install/FairSoft/install. After that, I cloned FairRoot and made the directory build. But at the moment I did cmake -DCMAKE_INSTALL_PREFIX="~/fair_install/FairRoot/install" .., I got this error:

CMake Error at CMakeLists.txt:79 (find_package):
  By not providing "FindFairCMakeModules.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "FairCMakeModules", but CMake did not find one.

  Could not find a package configuration file provided by "FairCMakeModules"
  (requested version 0.2) with any of the following names:

    FairCMakeModulesConfig.cmake
    faircmakemodules-config.cmake

  Add the installation prefix of "FairCMakeModules" to CMAKE_PREFIX_PATH or
  set "FairCMakeModules_DIR" to a directory containing one of the above
  files.  If "FairCMakeModules" provides a separate development package or
  SDK, be sure it has been installed.

To Reproduce Steps to reproduce the behavior: 1.- Install FairSoft 2.- export SIMPATH=~/Documents/FairSoft/install (outside FairSoft) 3.- In another directory different from FairSoft, clone FairRoot (git clone) 4.- in FairSoft mkdir build; cd build 5.- cmake -DCMAKE_INSTALL_PREFIX="~/Documents/FairRoot/install" ..

Expected behavior I expect FairRoot will installed correctly.

System information (please complete the following information):

dennisklein commented 1 month ago

export SIMPATH=~/fair_install/FairSoft/install

Can you try exporting the full path? I believe the ~ is not understood by CMake.

LeoFoorm commented 1 month ago

it worked. Thank you very much.