Update README.md

This commit is contained in:
danilcha 2017-03-11 01:06:58 +01:00 committed by GitHub
parent b2521c890a
commit b6c4d434db

View File

@ -147,8 +147,8 @@ However, we also recommend adding the following lines (if using CMake 2.8.11 or
target_include_directories(gtest SYSTEM INTERFACE "${gtest_SOURCE_DIR}/include")
target_include_directories(gtest_main SYSTEM INTERFACE "${gtest_SOURCE_DIR}/include")
target_include_directories(gmock SYSTEM INTERFACE "${gmock_SOURCE_DIR}/include")
target_include_directories(gmock_main SYSTEM INTERFACE "${gmock_SOURCE_DIR}/include")
target_include_directories(gmock SYSTEM INTERFACE "${gmock_SOURCE_DIR}/include")
target_include_directories(gmock_main SYSTEM INTERFACE "${gmock_SOURCE_DIR}/include")
This marks Google Mock includes as system, which will silence compiler warnings when
compiling your tests using clang with `-Wpedantic -Wall -Wextra -Wconversion`.