Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Corentin-Allaire committed Jan 12, 2024
1 parent 0f93f4d commit 27acaf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
7 changes: 4 additions & 3 deletions cmake/FindPythia8.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@

find_library(Pythia8_LIBRARY
NAMES Pythia8 pythia8
HINTS ENV PYTHIA8_DIR PYTHIA8
HINTS $ENV{PYTHIA8_DIR}/lib PYTHIA8/lib
PATHS /opt/pythia8 /usr/local
DOC "The Pythia8 library")
find_path(Pythia8_INCLUDE_DIR
NAMES Pythia8/Pythia.h
HINTS ENV PYTHIA8_DIR PYTHIA8
HINTS $ENV{PYTHIA8_DIR}/include PYTHIA8/include
PATHS /opt/pythia8 /usr/local
DOC "The Pythia8 include directory")

find_package_handle_standard_args(Pythia8
REQUIRED_VARS Pythia8_LIBRARY Pythia8_INCLUDE_DIR)

add_library(Pythia8 SHARED IMPORTED)
set_property(TARGET Pythia8 PROPERTY IMPORTED_LOCATION ${Pythia8_LIBRARY})
set_property(TARGET Pythia8 PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${Pythia8_INCLUDE_DIR})

mark_as_advanced(Pythia8_FOUND Pythia8_INCLUDE_DIR Pythia8_LIBRARY)
mark_as_advanced(Pythia8_FOUND Pythia8_INCLUDE_DIR Pythia8_LIBRARY)
16 changes: 0 additions & 16 deletions cmake/Findmlpack.cmake

This file was deleted.

0 comments on commit 27acaf2

Please sign in to comment.