Skip to content

Improving cmake

Lennart Huth requested to merge lhuth/corryvreckan:patches into master

As discussed in issue #63 (closed), cmake was throwing an error: 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

@simonspa suggested to change GET_FILENAME_COMPONENT(ROOT_CMAKE_DIR ${ROOT_USE_FILE} DIRECTORY) to GET_FILENAME_COMPONENT(ROOT_CMAKE_DIR "${ROOT_USE_FILE}" DIRECTORY), which solved the issue

Merge request reports