Changeset View
Changeset View
Standalone View
Standalone View
cmake/Modules/FindPythia8.cmake
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
endif() | endif() | ||||
# component alternative names | # component alternative names | ||||
set(_pythia8tohepmc_names hepmcinterface) | set(_pythia8tohepmc_names hepmcinterface) | ||||
set(_hepmcinterface_names pythia8tohepmc) | set(_hepmcinterface_names pythia8tohepmc) | ||||
foreach(component ${Pythia8_FIND_COMPONENTS}) | foreach(component ${Pythia8_FIND_COMPONENTS}) | ||||
find_library(PYTHIA8_${component}_LIBRARY NAMES ${component} ${_${component}_names} | find_library(PYTHIA8_${component}_LIBRARY NAMES ${component} ${_${component}_names} | ||||
HINTS $ENV{PYTHIA8_ROOT_DIR}/lib ${PYTHIA8_ROOT_DIR}/lib) | HINTS $ENV{PYTHIA8_ROOT_DIR}/lib ${PYTHIA8_ROOT_DIR}/lib $ENV{PYTHIA8_ROOT_DIR}/lib64 ${PYTHIA8_ROOT_DIR}/lib64 ) | ||||
if (PYTHIA8_${component}_LIBRARY) | if (PYTHIA8_${component}_LIBRARY) | ||||
set(PYTHIA8_${component}_FOUND 1) | set(PYTHIA8_${component}_FOUND 1) | ||||
list(APPEND PYTHIA8_LIBRARIES ${PYTHIA8_${component}_LIBRARY}) | list(APPEND PYTHIA8_LIBRARIES ${PYTHIA8_${component}_LIBRARY}) | ||||
get_filename_component(libdir ${PYTHIA8_${component}_LIBRARY} PATH) | get_filename_component(libdir ${PYTHIA8_${component}_LIBRARY} PATH) | ||||
list(APPEND PYTHIA8_LIBRARY_DIRS ${libdir}) | list(APPEND PYTHIA8_LIBRARY_DIRS ${libdir}) | ||||
else() | else() | ||||
set(PYTHIA8_${component}_FOUND 0) | set(PYTHIA8_${component}_FOUND 0) | ||||
Show All 16 Lines |