From 61b54112ebae9b9c7b238b61821eb3e47c10fa2b Mon Sep 17 00:00:00 2001 From: tqcq Date: Mon, 11 Dec 2023 09:26:36 +0800 Subject: [PATCH] feature try disable c++11 for gtest --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb9a4d2..55ec159 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -46,6 +46,9 @@ install(TARGETS ${PROJECT_NAME} DESTINATION lib) if(ULIB_BUILD_TESTS) enable_testing() + set(GTEST_LANG_CXX11 OFF) + set(GTEST_HAS_TR1_TUPLE OFF) + set(GTEST_USE_OWN_TR1_TUPLE ON) add_subdirectory(3party/googletest) add_subdirectory(tests) -endif() \ No newline at end of file +endif()