summaryrefslogtreecommitdiffstats
path: root/cmake/FindWrapPCRE2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindWrapPCRE2.cmake')
-rw-r--r--cmake/FindWrapPCRE2.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/FindWrapPCRE2.cmake b/cmake/FindWrapPCRE2.cmake
index b69c5078a5..08f660bdfc 100644
--- a/cmake/FindWrapPCRE2.cmake
+++ b/cmake/FindWrapPCRE2.cmake
@@ -1,4 +1,7 @@
-include_guard(GLOBAL) # pragma once equivalent
+if(TARGET WrapPCRE2::WrapPCRE2)
+ set(WrapPCRE2_FOUND TRUE)
+ return()
+endif()
find_package(PCRE2 CONFIG QUIET)