add -permissive to the boost test
@@ -10,6 +10,12 @@ if not dep.found()
error('MESON_SKIP_TEST boost not found.')
endif
+compiler = meson.get_compiler('cpp')
+if compiler.has_argument('-permissive')
+ # boost 1.64, the version we test against, doesn't work with -permissive
+ add_project_arguments('-permissive', language: 'cpp')
+endif
+
# We want to have multiple separate configurations of Boost
# within one project. The need to be independent of each other.
# Use one without a library dependency and one with it.
