Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ cmake = import('cmake')
# Compilers
cxx = meson.get_compiler('cpp')

# Build bundled primecount with PIC so it can link into the Python extension.
primecount_opts = cmake.subproject_options()
primecount_opts.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': 'ON'})
primecount_proj = cmake.subproject('primecount', options: primecount_opts)
primecount_dep = primecount_proj.dependency('libprimecount-static')
primecount_dep = dependency('primecount', required: false, version: '>=8.0.0')
if not primecount_dep.found()
# Build bundled primecount with PIC so it can link into the Python extension.
primecount_opts = cmake.subproject_options()
primecount_opts.add_cmake_defines({'CMAKE_POSITION_INDEPENDENT_CODE': 'ON'})
primecount_proj = cmake.subproject('primecount', options: primecount_opts)
primecount_dep = primecount_proj.dependency('libprimecount-static')
endif
inc_cysignals = run_command(
py,
[
Expand Down
Loading