Skip to content

Commit

Permalink
[OMON-607] Look for ApMon just in APMON_ROOT (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
awegrzyn authored Oct 10, 2022
1 parent 84f7c63 commit cf590fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ endif()

# Define project
project(Monitoring
VERSION 3.14.0
VERSION 3.14.1
DESCRIPTION "O2 Monitoring library"
LANGUAGES CXX
)
Expand Down
6 changes: 4 additions & 2 deletions cmake/FindApMon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ include(FindPackageHandleStandardArgs)

# find includes
find_path(ApMon_INCLUDE_DIR ApMon.h
HINTS ${APMON_ROOT} /usr/local
PATHS ${APMON_ROOT}
PATH_SUFFIXES include
NO_DEFAULT_PATH
)

mark_as_advanced(ApMon_INCLUDE_DIR)

# find library
find_library(ApMon_LIBRARY NAMES apmoncpp
HINTS ${APMON_ROOT} /usr/local
PATHS ${APMON_ROOT}
PATH_SUFFIXES lib lib64
NO_DEFAULT_PATH
)

mark_as_advanced(ApMon_LIBRARY)
Expand Down

0 comments on commit cf590fb

Please sign in to comment.