From a99afa2ddfd2952e983e01f4b360e19895a0e9d5 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 14 Feb 2020 22:45:59 +0100 Subject: [PATCH] build system: make gtest compile (again) on macos --- test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4b33ec8c7..3f90425f5 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -26,6 +26,11 @@ else() endif() add_library(GTest::Main ALIAS gtest_main) + + target_compile_features(gtest PUBLIC cxx_std_17) + target_compile_features(gtest_main PUBLIC cxx_std_17) + target_compile_features(gmock PUBLIC cxx_std_17) + target_compile_features(gmock_main PUBLIC cxx_std_17) endif() include_directories($)