Skip to content

AtlasLCG Fixes, master branch (2020.07.08.)

This is here to fix 2 issues.

CMake Warning at /cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2020-07-07T2139/Athena/22.0.16/InstallArea/x86_64-centos7-gcc8-opt/cmake/modules/LCGFunctions.cmake:1131 (find_package):
  By not providing "Findfmt.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "fmt", but
  CMake did not find one.

  Could not find a package configuration file provided by "fmt" with any of
  the following names:

    fmtConfig.cmake
    fmt-config.cmake

  Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
  to a directory containing one of the above files.  If "fmt" provides a
  separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
  /cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2020-07-07T2139/Athena/22.0.16/InstallArea/x86_64-centos7-gcc8-opt/cmake/modules/Findfmt.cmake:11 (lcg_wrap_find_module)
  /cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2020-07-07T2139/Athena/22.0.16/InstallArea/x86_64-centos7-gcc8-opt/cmake/modules/FindGaudi.cmake:65 (find_package)
  /cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2020-07-07T2139/Athena/22.0.16/InstallArea/x86_64-centos7-gcc8-opt/cmake/PostConfig.cmake:24 (find_package)
  /cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2020-07-07T2139/Athena/22.0.16/InstallArea/x86_64-centos7-gcc8-opt/cmake/AthenaConfig.cmake:369 (include)
  CMakeLists.txt:40 (find_package)

This is because the RPM dependency for fmt was not set up correctly by the code. The update in lcg_wrap_find_module(...) is fixing this.

  • The modification in FindNjet.cmake is here to get rid of the following warning with the latest CMake versions:
CMake Warning (dev) at /opt/cmake/3.17.3/Linux-x86_64/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (NJet) does
  not match the name of the calling package (Njet).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /data-hdd1/projects/fmt/atlasexternals/Build/AtlasLCG/modules/FindNjet.cmake:24 (find_package_handle_standard_args)
  CMakeLists.txt:26 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

Merge request reports