Skip to content

Commit

Permalink
CMake remember decision to bundle WITH_PCRE, avoid repeated system ch…
Browse files Browse the repository at this point in the history
…ecks
  • Loading branch information
vaintroub committed Feb 6, 2024
1 parent c482e71 commit a94d2a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/pcre.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ SET(WITH_PCRE "auto" CACHE STRING
"Which pcre to use (possible values are 'bundled', 'system', or 'auto')")

MACRO(BUNDLE_PCRE2)
SET(WITH_PCRE "bundled" CACHE STRING
"Which pcre to use (possible values are 'bundled', 'system', or 'auto')")

SET(dir "${CMAKE_BINARY_DIR}/extra/pcre2")
SET(PCRE_INCLUDE_DIRS ${dir}/src/pcre2-build ${dir}/src/pcre2/src)
MESSAGE(STATUS "Will download and bundle pcre2")
Expand Down

0 comments on commit a94d2a6

Please sign in to comment.