From 886491625defc5fb90283b8ea6be181e039c1e35 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sun, 27 Nov 2022 12:41:44 +0500 Subject: [PATCH] Remove workaround for GTest bug Signed-off-by: Vladislav Shchapov --- test/gtest/CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/gtest/CMakeLists.txt b/test/gtest/CMakeLists.txt index 1ef42da0..0cccc61f 100644 --- a/test/gtest/CMakeLists.txt +++ b/test/gtest/CMakeLists.txt @@ -18,14 +18,6 @@ else () target_compile_definitions(gtest PUBLIC GTEST_HAS_PTHREAD=0) endif () -# Workaround GTest bug https://github.com/google/googletest/issues/705 -if (NOT MSVC) - check_cxx_compiler_flag(-fno-delete-null-pointer-checks HAVE_FNO_DELETE_NULL_POINTER_CHECKS) -endif () -if (HAVE_FNO_DELETE_NULL_POINTER_CHECKS) - target_compile_options(gtest PUBLIC -fno-delete-null-pointer-checks) -endif () - if (MSVC) # Disable MSVC warnings of _CRT_INSECURE_DEPRECATE functions. target_compile_definitions(gtest PRIVATE _CRT_SECURE_NO_WARNINGS)