mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-22 01:49:48 +00:00
[#3731] Added system vs boost regex.h check
This commit is contained in:
parent
1d60359a19
commit
db7e9ca4bd
8
compiler-checks/boost-regex.cc
Normal file
8
compiler-checks/boost-regex.cc
Normal file
@ -0,0 +1,8 @@
|
||||
#include <regex.h>
|
||||
#ifdef BOOST_RE_REGEX_H
|
||||
#error "boost/regex.h"
|
||||
#endif
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
11
meson.build
11
meson.build
@ -254,6 +254,17 @@ conf_data.set('HAVE_PGSQL', POSTGRESQL_DEP.found())
|
||||
|
||||
#### Compiler Checks
|
||||
|
||||
if cpp.has_header('boost/regex.h', dependencies: [boost_dep], required: false)
|
||||
result = cpp.run(
|
||||
fs.read('compiler-checks/boost-regex.cc'),
|
||||
dependencies: [boost_dep],
|
||||
name: 'GET_SYSTEM_VS_BOOST_REGEX_HEADER',
|
||||
)
|
||||
if result.returncode() != 0
|
||||
error('boost/regex.h is used in place of system regex.h')
|
||||
endif
|
||||
endif
|
||||
|
||||
result = cpp.run(
|
||||
fs.read('compiler-checks/chrono-same-duration.cc'),
|
||||
name: 'CHRONO_SAME_DURATION',
|
||||
|
Loading…
x
Reference in New Issue
Block a user