attempt 2

This commit is contained in:
Maarten L. Hekkelman
2025-08-25 11:25:10 +02:00
parent 9e30d2bc1a
commit 31090c6ec5
2 changed files with 6 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ endif()
# find_package(pcre2) is unfortunately broken
include(FindPCRE2)
include(FindPCRE2x)
find_package(ZLIB QUIET)
find_package(Threads)

View File

@@ -1,10 +1,9 @@
set(PCRE2_USE_STATIC_LIBS ON)
find_package(pcre2 CONFIG )
find_package(pcre2 CONFIG)
if(PCRE2_FOUND)
message(STATUS "Using pcre2 found using find_package")
else()
include(FindPkgConfig)
@@ -13,11 +12,15 @@ else()
if(PCRE2_FOUND)
message(STATUS "Using pcre2 found using pkg-config")
add_library(pcre2-8 ALIAS PkgConfig::PCRE2)
endif()
endif()
endif()
if(NOT PCRE2_FOUND)
message(STATUS "Using pcre2 using FetchContent")
set(PCRE2_BUILD_TESTS OFF)
FetchContent_Declare(
pcre2