Open idruker-cerence opened 3 weeks ago
FWIW, can't reproduce this in macOS (using cmake 3.30.2), even with the old PCRE2 10.42 code but it seems broken (if not even more so as it can't find PCRE2_INCLUDE_DIR also in my tests) in Windows.
There are several unresolved issues with cmake
(see #115) with some old bugs fixed in newer versions of PCRE2 that might help.
Hello
I compile PCRE2 with cmake:
The build succeeds and along libs produces the files
pcre2-config.cmake
andpcre2-config-version.cmake
in the directorybuild/cmake
.Next, I want to compile a project that uses PCRE2 as a dependency - let's call it
dummy
. As per instruction, I set in its CMakeLists.txtand command the build as:
I specified CMAKE_PREFIX_PATH in order that the compiler finds
pcre2-config.cmake
and indeed the compiler finds it but then produces the following error:It looks as if the required component 8BIT was not defined as the result of PCRE2 compilation. What have I missed?
Thank you