Commit a1488489 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CMake: better error message if peary is not found

parent 6bed7063
Pipeline #353376 failed with stages
in 2 minutes and 6 seconds
......@@ -6,7 +6,8 @@ CORRYVRECKAN_ALGORITHM(ALGORITHM_NAME)
# Geant4 is required for geometry description and charge deposition.
FIND_PACKAGE(Peary)
IF(NOT PEARY_FOUND)
MESSAGE(FATAL_ERROR "Could not find peary.")
MESSAGE(FATAL_ERROR "Could not find Peary, make sure to set the path to your installation using\n"
"$ export PEARYPATH=/your/path/to/Peary")
ENDIF()
# Add source files to library
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment