Skip to content

Commit

Permalink
Fix failing gtest compilation
Browse files Browse the repository at this point in the history
No need to compile gtest with the pedantic flag
  • Loading branch information
platisd committed Feb 3, 2021
1 parent 240d2da commit d61a8a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ add_definitions(-DENABLE_TESTS -DPLATFORM_AGNOSTIC_BUILD)
enable_testing()

# GTest and GMock do not play nicely with these flags, so disable them
target_compile_options(gtest PRIVATE -Wno-sign-promo)
target_compile_options(gtest PRIVATE -Wno-sign-promo -Wno-pedantic)

# Utility functions
function(configure_test testExecutable)
Expand All @@ -71,7 +71,6 @@ endfunction(configure_test)

# Common headers
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/test_libs/gmock-gtest
${CMAKE_CURRENT_SOURCE_DIR}/mocks/
${SMARTCAR_LIB}/runtime
)
Expand Down

0 comments on commit d61a8a0

Please sign in to comment.