mirror of
https://github.com/NixOS/nix
synced 2025-06-24 13:51:16 +02:00
export/meson: Don't require -std=c++2a
for -c libraries in .pc
files
This commit is contained in:
parent
4cc312a6e1
commit
d8da8f0cd6
1 changed files with 7 additions and 1 deletions
|
@ -11,12 +11,18 @@ endforeach
|
|||
requires_public += deps_public
|
||||
|
||||
extra_pkg_config_variables = get_variable('extra_pkg_config_variables', {})
|
||||
|
||||
extra_cflags = []
|
||||
if not meson.project_name().endswith('-c')
|
||||
extra_cflags += ['-std=c++2a']
|
||||
endif
|
||||
|
||||
import('pkgconfig').generate(
|
||||
this_library,
|
||||
filebase : meson.project_name(),
|
||||
name : 'Nix',
|
||||
description : 'Nix Package Manager',
|
||||
extra_cflags : ['-std=c++2a'],
|
||||
extra_cflags : extra_cflags,
|
||||
requires : requires_public,
|
||||
requires_private : requires_private,
|
||||
libraries_private : libraries_private,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue