2 MESSAGE(STATUS "$PYTHIADIR: $ENV{PYTHIADIR}")
3 FIND_LIBRARY(PYTHIA6_LIBRARY NAMES Pythia6 PATHS $ENV{PYTHIADIR} /usr/lib /usr/lib64 /usr/local/lib )
6 SET(PYTHIA6_FOUND TRUE)
7 ENDIF (PYTHIA6_LIBRARY)
10 IF (NOT Pythia6_FIND_QUIETLY)
11 MESSAGE(STATUS "Found Pythia6: ${PYTHIA6_LIBRARY}")
12 ENDIF (NOT Pythia6_FIND_QUIETLY)
14 IF (Pythia6_FIND_REQUIRED)
15 MESSAGE(FATAL_ERROR "Could not find Pythia6. We search first in $PYTHIADIR, then in the normal library paths.")
16 ELSE(Pythia6_FIND_REQUIRED)
17 IF(NOT Pythia6_FIND_QUIETLY)
18 MESSAGE(STATUS "Could not find Pythia6. We search first in $PYTHIADIR, then in the normal library paths.")
19 ENDIF(NOT Pythia6_FIND_QUIETLY)
20 ENDIF (Pythia6_FIND_REQUIRED)