Skip to content

Commit b5d5485

Browse files
committed
build: Rename config.h to libnvme-config.h
The meson documentation recommends not to put a config.h file in the external search path. This will clash with any project consuming this library. There are two ways to workaround, either renaming the config header file or put it under a different path which isn't added into the default include path. Renaming is way simpler, let's do this. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 86a356e commit b5d5485

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

meson.build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ conf.set10(
120120
description: 'Is isblank() available?'
121121
)
122122

123-
config_h = configure_file(
124-
output: 'config.h',
123+
configure_file(
124+
output: 'libnvme-config.h',
125125
configuration: conf
126126
)
127127

@@ -137,7 +137,8 @@ configure_file(
137137
)
138138

139139
################################################################################
140-
add_project_arguments(['-fomit-frame-pointer', '-D_GNU_SOURCE', '-include', 'config.h'], language : 'c')
140+
add_project_arguments(['-fomit-frame-pointer', '-D_GNU_SOURCE',
141+
'-include', 'libnvme-config.h'], language : 'c')
141142
incdir = include_directories(['.', 'ccan', 'src'])
142143

143144
################################################################################

0 commit comments

Comments
 (0)