Skip to content

Commit

Permalink
e Remove ~11,000 lines of warnings building CppUTest with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Dec 31, 2020
1 parent c46da09 commit 3f99273
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMake/cpputest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ if (NOT TARGET cpputest)
# Prevent CppUTest's own tests from being built
set(TESTS OFF CACHE BOOL "")

# Prevent build of CppUTest from generating thousands of lines of
# -Wc++98-compat and -Wc++98-compat-pedantic warnings:
set(C++11 ON CACHE BOOL "Compile with C++11 support")

# Add cpputest directly to our build. This defines the cpputest target.
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/cpputest-src
${CMAKE_CURRENT_BINARY_DIR}/cpputest-build
Expand Down

0 comments on commit 3f99273

Please sign in to comment.