mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-20 11:29:38 +00:00
build(meson): use C++17 for gtest >= 1.17.0 (#2241)
This commit is contained in:
1 parent
41be1e24e3
commit
35c52c1ab9
1 file changed
+4
-2
+4
-2
@@ -108,9 +108,11 @@ subdir('www')
|
|||||||
subdir('www2'/'dir')
|
subdir('www2'/'dir')
|
||||||
subdir('www3'/'dir')
|
subdir('www3'/'dir')
|
||||||
|
|
||||||
# GoogleTest 1.13.0 requires C++14
|
# New GoogleTest versions require new C++ standards
|
||||||
test_options = []
|
test_options = []
|
||||||
if gtest_dep.version().version_compare('>=1.13.0')
|
if gtest_dep.version().version_compare('>=1.17.0')
|
||||||
|
test_options += 'cpp_std=c++17'
|
||||||
|
elif gtest_dep.version().version_compare('>=1.13.0')
|
||||||
test_options += 'cpp_std=c++14'
|
test_options += 'cpp_std=c++14'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user