tests: Fix clang build
Compiling gtest with clang fails with -Wmissing-field-initializers as reported in [1] [1]: https://github.com/google/googletest/issues/1521
This commit is contained in:
parent
0e5584920b
commit
fce313f3ef
@ -1,5 +1,5 @@
|
||||
# Compile and link with coverage
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fprofile-arcs -ftest-coverage")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fprofile-arcs -ftest-coverage -Wno-missing-field-initializers")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
|
||||
|
||||
link_libraries(${libs})
|
||||
|
Loading…
Reference in New Issue
Block a user