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 a4d1779945
commit ea261fe26f

View File

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