Skip to content

Commit

Permalink
tests: Fix clang build
Browse files Browse the repository at this point in the history
Compiling gtest with clang fails with -Wmissing-field-initializers as
reported in [1]
[1]: google/googletest#1521
  • Loading branch information
patrick96 committed Apr 8, 2018
1 parent 6f52d4b commit 76ddff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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})
Expand Down

0 comments on commit 76ddff9

Please sign in to comment.