MSVC CMake generation optimization (#2852)

This commit is contained in:
Mattias Ljungström
2022-04-08 15:27:23 +02:00
committed by GitHub
parent 22d31b31f0
commit a935ac3e60
5 changed files with 32 additions and 41 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ else ()
endif ()
# Workaround GTest bug https://github.com/google/googletest/issues/705.
check_cxx_compiler_flag(
fmt_check_cxx_compiler_flag(
-fno-delete-null-pointer-checks HAVE_FNO_DELETE_NULL_POINTER_CHECKS)
if (HAVE_FNO_DELETE_NULL_POINTER_CHECKS)
target_compile_options(gtest PUBLIC -fno-delete-null-pointer-checks)