Change search path for dependency()? #12070
-
I'm trying to build glib, which uses mason as its build system, as a universal binary on macOS. When linking it resolves
Now this seems to be the result of:
in the I've tried setting Ideally I'm looking for an environment or command line solution as I'm trying not to modify the library's files if possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That's only used on Windows. The full check is: pcre2 = dependency('libpcre2-8', version: pcre2_req, required: false, default_options: ['default_library=static'])
if not pcre2.found()
if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
# MSVC: Search for the PCRE2 library by the configuration, which corresponds
# to the output of CMake builds of PCRE2. Note that debugoptimized
# is really a Release build with .PDB files.
if vs_crt == 'debug'
pcre2 = cc.find_library('pcre2d-8', required : false)
else
pcre2 = cc.find_library('pcre2-8', required : false)
endif
endif
endif
# Try again with the fallback
if not pcre2.found()
pcre2 = dependency('libpcre2-8', version: pcre2_req, allow_fallback: true, default_options: ['default_library=static'])
assert(pcre2.type_name() == 'internal')
... Notice:
|
Beta Was this translation helpful? Give feedback.
That's only used on Windows. The full check is: