fix the pcre versio check error on clang 16

This commit is contained in:
Jingbo Chen 2024-01-29 10:50:16 +08:00
parent 98eb459ac2
commit 24786ae332

View File

@ -30,7 +30,7 @@ if (PCRE_BUILD_SOURCE)
#if PCRE_MAJOR != ${PCRE_REQUIRED_MAJOR_VERSION} || PCRE_MINOR < ${PCRE_REQUIRED_MINOR_VERSION}
#error Incorrect pcre version
#endif
main() {}" CORRECT_PCRE_VERSION)
int main(void) {return 0;}" CORRECT_PCRE_VERSION)
set (CMAKE_REQUIRED_INCLUDES "${saved_INCLUDES}")
if (NOT CORRECT_PCRE_VERSION)