diff options
-rw-r--r-- | cmake/FindPPS.cmake | 4 | ||||
-rw-r--r-- | cmake/FindSlog2.cmake | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cmake/FindPPS.cmake b/cmake/FindPPS.cmake index c3360fa82c..fdcc87fa37 100644 --- a/cmake/FindPPS.cmake +++ b/cmake/FindPPS.cmake @@ -1,6 +1,10 @@ # Find the PPS library # Will make the target PPS::PPS available when found. +if(TARGET PPS::PPS) + set(PPS_FOUND TRUE) + return() +endif() find_library(PPS_LIBRARY NAMES "pps") find_path(PPS_INCLUDE_DIR NAMES "sys/pps.h" DOC "The PPS Include path") diff --git a/cmake/FindSlog2.cmake b/cmake/FindSlog2.cmake index 807ab6b12a..1e3e264816 100644 --- a/cmake/FindSlog2.cmake +++ b/cmake/FindSlog2.cmake @@ -1,6 +1,10 @@ # Find the Slog2 library # Will make the target Slog2::Slog2 available when found. +if(TARGET Slog2::Slog2) + set(Slog2_FOUND TRUE) + return() +endif() find_library(Slog2_LIBRARY NAMES "slog2") find_path(Slog2_INCLUDE_DIR NAMES "sys/slog2.h" DOC "The Slog2 Include path") |