Don't check for C++11 features if C++11 support is disabled

This commit is contained in:
vitaut
2016-03-18 08:10:06 -07:00
parent c052cf11b9
commit 63d7f3d116
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -40,6 +40,8 @@ target_compile_definitions(test-main PUBLIC
FMT_USE_FILE_DESCRIPTORS=$<BOOL:${HAVE_OPEN}>)
target_link_libraries(test-main gmock cppformat)
include(CheckCXXCompilerFlag)
# Workaround GTest bug https://github.com/google/googletest/issues/705.
check_cxx_compiler_flag(
-fno-delete-null-pointer-checks HAVE_FNO_DELETE_NULL_POINTER_CHECKS)