summaryrefslogtreecommitdiffstats
path: root/cmake/FindPCRE2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindPCRE2.cmake')
-rw-r--r--cmake/FindPCRE2.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindPCRE2.cmake b/cmake/FindPCRE2.cmake
index 7e45c963d7..3977532124 100644
--- a/cmake/FindPCRE2.cmake
+++ b/cmake/FindPCRE2.cmake
@@ -5,7 +5,7 @@ find_path(PCRE2_INCLUDE_DIRS pcre2.h)
if (PCRE2_LIBRARIES STREQUAL "PCRE2_LIBRARIES-NOTFOUND" OR PCRE2_INCLUDE_DIRS STREQUAL "PCRE2_INCLUDE_DIRS-NOTFOUND")
set(PCRE2_FOUND 0)
else()
- add_library(PCRE2 INTERFACE)
+ add_library(PCRE2 INTERFACE IMPORTED)
target_link_libraries(PCRE2 INTERFACE ${PCRE2_LIBRARIES})
target_include_directories(PCRE2 INTERFACE ${PCRE2_INCLUDE_DIRS})
set(PCRE2_FOUND 1)