Procházet zdrojové kódy

build system: make gtest compile (again) on macos

Michele Caini před 6 roky
rodič
revize
a99afa2ddf
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      test/CMakeLists.txt

+ 5 - 0
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($<TARGET_PROPERTY:EnTT,INTERFACE_INCLUDE_DIRECTORIES>)