Open timansky opened 2 months ago
Also this happens with all custom libs (zlib ssl ...)
SSL fixes with adding variable -DOPENSSL_ROOT_DIR=${SSL_SRC_PATH}
Something like this -DCMAKE_CXX_FLAGS=-I${PATH_TO_PCRE2_SRC}/src
could fix PCRE error.
Could you elaborate a bit on why do you need custom libs?
zlib is fixed by specifying -DZLIB_ROOT=${ZLIB_SRC_PATH}
-DCMAKE_CXX_FLAGS=-I${PATH_TO_PCRE2_SRC}/src
Already tried with no success. Also tried:
-DCMAKE_PREFIX_PATH=${PCRE2_SRC}/src
-DPCRE2_ROOT=${PCRE2_SRC}/src
-DPCRE2_LIBRARY=${PCRE2_SRC}/src
-DCMAKE_INCLUDE_PATH=${PCRE2_SRC}/src
I have this in my build file for pcre2:
sed -i '/target_include/a \ \ \ \ /usr/local/openresty/pcre2/include' CMakeLists.txt
Describe the bug
I'm trying to build module from source with nginx with pcre2 from sources. Build is failing because it is trying to find pcre2.h inside nginx directory
To reproduce
Steps to reproduce the behavior: