You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Combine found libraries into a single list (adjust based on what your project needs)
33
+
set(PCRE_LIBRARIES)
34
+
if (PCRE_LIBRARY_8)
35
+
list(APPEND PCRE_LIBRARIES ${PCRE_LIBRARY_8})
36
+
endif()
37
+
if (PCRE_LIBRARY_16)
38
+
list(APPEND PCRE_LIBRARIES ${PCRE_LIBRARY_16})
39
+
endif()
40
+
if (PCRE_LIBRARY_32)
41
+
list(APPEND PCRE_LIBRARIES ${PCRE_LIBRARY_32})
42
+
endif()
43
+
if (PCRE_LIBRARY_POSIX)
44
+
list(APPEND PCRE_LIBRARIES ${PCRE_LIBRARY_POSIX})
45
+
endif()
46
+
47
+
# Find pcre-config
48
+
find_program(PCRE_CONFIGpcre-config)
49
+
50
+
# Extract the version number, which is defiend separately as PCRE_MAJOR and PCRE_MINOR (and PCRE_PRERELEASE, but not checking the prerelease component)
51
+
set(PCRE_VERSION "unknown")
52
+
if (PCRE_INCLUDE_DIRS ANDEXISTS"${PCRE_INCLUDE_DIRS}/pcre.h")
# If we wanted to actually depend on pcre, we could create an imported library target here.
79
+
# However there is no need currently as we are just checking for pcre presence to emit a warning if building swig from source and swig compilation failed.
# Extract the version number, which is defiend separately as PCRE2_MAJOR and PCRE2_MINOR (and PCRE2_PRERELEASE, but not checking the prerelease component)
48
+
if (PCRE2_INCLUDE_DIRS ANDEXISTS"${PCRE2_INCLUDE_DIRS}/pcre2.h")
# If we wanted to actually depend on pcre2, we could create an imported library target here.
76
+
# However there is no need currently as we are just checking for pcre2 presence to emit a warning if building swig from source and swig compilation failed.
# Quitely Find PCRE (Swig < 4.1) or PCRE2 >= swig 4.1. If not found, emit a warning, but do not error (incase cmake/modules/FindPCRE.cmake is not perfect)
120
+
if (FLAMEGPU_SWIG_DOWNLOAD VERSION_LESS"4.1")
121
+
find_package(PCREQUIET)
122
+
message("a")
123
+
if(NOT PCRE_FOUND)
124
+
message(
125
+
WARNING" Swig ${FLAMEGPU_SWIG_DOWNLOAD} requires 'pcre-config', but PCRE could not be found.\n"
126
+
" Swig compilation from source may fail.\n"
127
+
" If so, please insall PCRE with development dependencies, e.g.:\n"
0 commit comments