mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-02 11:28:20 +00:00
Workaround GTest bug 705 (#268)
This commit is contained in:
parent
220bb764e5
commit
a4b611a3d3
@ -42,6 +42,9 @@ target_compile_definitions(test-main PUBLIC
|
|||||||
FMT_USE_FILE_DESCRIPTORS=$<BOOL:${HAVE_OPEN}>)
|
FMT_USE_FILE_DESCRIPTORS=$<BOOL:${HAVE_OPEN}>)
|
||||||
target_link_libraries(test-main gmock cppformat)
|
target_link_libraries(test-main gmock cppformat)
|
||||||
|
|
||||||
|
# Workaround GTest bug https://github.com/google/googletest/issues/705.
|
||||||
|
target_compile_options(test-main PUBLIC -fno-delete-null-pointer-checks)
|
||||||
|
|
||||||
# relax pedantic flags for the tests
|
# relax pedantic flags for the tests
|
||||||
# TODO: fix warnings in tests to make this redundant. (e.g. -Wshadow,...)
|
# TODO: fix warnings in tests to make this redundant. (e.g. -Wshadow,...)
|
||||||
if (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
if (CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
||||||
|
Loading…
Reference in New Issue
Block a user