Skip to content

Commit

Permalink
kludge MSVC pedantic error on googletest's use of tr1 - see google/go…
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Mar 30, 2018
1 parent 413c634 commit b1b7252
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions c4project.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function(c4_declare_project prefix)
if(${uprefix}PEDANTIC)
if(MSVC)
set(of "${of} /W4")
# silence MSVC pedantic error on googletest's use of tr1: https://github.com/google/googletest/issues/1111
set(of "${of} /D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING")
else()
set(of "${of} -Wall -Wextra -Wshadow -pedantic -Wfloat-equal -fstrict-aliasing")
endif()
Expand Down

0 comments on commit b1b7252

Please sign in to comment.