disable global compiler flag when used as subproject (fixes #72)

This commit is contained in:
Mark Gillard 2020-12-09 09:48:02 +02:00
parent d95ff4c04f
commit 9ea4438fc4

View File

@ -472,7 +472,7 @@ compiler_supports_float128 = compiler.links('''
name : 'supports __float128'
)
if compiler_supports_float128 and is_gcc
if compiler_supports_float128 and is_gcc and not is_subproject
add_global_arguments('-fext-numeric-literals', language : 'cpp')
endif