cmake fails on suse 15.1 running cmake 3.10.2
After upgrading my system I tried to reinstall corryvreckan and cmake is throwing the following error:
CMake Error at src/objects/CMakeLists.txt:5 (GET_FILENAME_COMPONENT): GET_FILENAME_COMPONENT called with incorrect number of arguments
The function GET_FILENAME_COMPONENT
has essentially never changed from version 3.4 on and I am not sure why it fails now. I changed src/objects/CmakeLists.txt
to get it running.
# Find the RootNewMacros.cmake file and include it #GET_FILENAME_COMPONENT(ROOT_CMAKE_DIR ${ROOT_USE_FILE} DIRECTORY) FIND_FILE(ROOT_MACROS_FILE NAMES RootNewMacros.cmake HINTS $ENV{ROOTSYS}/cmake/modules)
Any ideas on how to fix that in a better way?