Closed
Description
I'm using the following CMake section to build pcre2 as a project dependency on Ubuntu 20.04 and MacoOS monterey.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(PCRE2_USE_STATIC_LIBS ON)
set(PCRE2_BUILD_TESTS OFF)
set(PCRE2_BUILD_PCRE2GREP OFF)
include(FetchContent)
FetchContent_Declare(pcre2
URL https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.gz
URL_HASH SHA256=c33b418e3b936ee3153de2c61cc638e7e4fe3156022a5c77d0711bcbb9d64f1f
)
FetchContent_MakeAvailable(pcre2)
if(NOT pcre2_POPULATED)
FetchContent_Populate(pcre2)
add_subdirectory(${pcre2_SOURCE_DIR} ${pcre2_BUILD_DIR})
endif()
However, PCRE2_BUILD_TESTS
and PCRE2_BUILD_PCRE2GREP
are still showing and behaving as ON
in cmake configuration and build
I've also tried with ubuntu-latest
and macos-latest
on Github and I'm still getting the following errors on ctest
.
The following tests FAILED:
[173](https://github.com/user/repo/actions/runs/xxx/jobs/yyy#step:5:174)
69 - pcre2_test (Failed)
[174](https://github.com//user/repo/actions/runs/xxx/jobs/yyy#step:5:175)
70 - pcre2_grep_test (Failed)
[175](https://github.com/blade-lang//user/repo/runs/xxx/jobs/yyy#step:5:176)
71 - pcre2posix_test (Not Run)
Same error locally. What could I be doing wrong??
Metadata
Metadata
Assignees
Labels
No labels