CMake Build: Add include guards for FindPPS.cmake and FindSlog2.cmake

The CMake configure process fails without include guards for these
two find modules on QNX.

Task-number: QTBUG-83202
Change-Id: I3cc589f98bc3b6b22c401421927ee6dab2663fb7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Cristian Adam 2020-08-18 16:13:22 +02:00
parent 1b802c41eb
commit 7e10dcb1d4
2 changed files with 8 additions and 0 deletions

View File

@ -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")

View File

@ -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")