Skip to content

Commit

Permalink
re-introduced HEPMC_ROOT_DIR as a HINT
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Jan 4, 2017
1 parent d6795a3 commit b5d8669
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/FindHepMC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@
# HEPMC_LIBRARIES (not cached)
# HEPMC_LIBRARY_DIRS (not cached)

find_path(HEPMC_INCLUDE_DIR HepMC/GenEvent.h)
find_path(HEPMC_INCLUDE_DIR HepMC/GenEvent.h
HINTS ${HEPMC_ROOT_DIR}/include $ENV{HEPMC_ROOT_DIR}/include)
set(HEPMC_INCLUDE_DIRS ${HEPMC_INCLUDE_DIR})

if(NOT HepMC_FIND_COMPONENTS)
set(HepMC_FIND_COMPONENTS HepMC)
endif()
foreach(component ${HepMC_FIND_COMPONENTS})
find_library(HEPMC_${component}_LIBRARY NAMES HepMC${component} ${component})
find_library(HEPMC_${component}_LIBRARY
NAMES HepMC${component} ${component}
HINTS ${HEPMC_ROOT_DIR}/lib $ENV{HEPMC_ROOT_DIR}/lib)
mark_as_advanced(HEPMC_${component}_LIBRARY)
list(APPEND HEPMC_LIBRARIES ${HEPMC_${component}_LIBRARY})
get_filename_component(_comp_dir ${HEPMC_${component}_LIBRARY} PATH)
Expand Down

0 comments on commit b5d8669

Please sign in to comment.