Browse Source

build system: make gtest compile (again) on macos

Michele Caini 6 years ago
parent
commit
a99afa2ddf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      test/CMakeLists.txt

+ 5 - 0
test/CMakeLists.txt

@@ -26,6 +26,11 @@ else()
     endif()
     endif()
 
 
     add_library(GTest::Main ALIAS gtest_main)
     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()
 endif()
 
 
 include_directories($<TARGET_PROPERTY:EnTT,INTERFACE_INCLUDE_DIRECTORIES>)
 include_directories($<TARGET_PROPERTY:EnTT,INTERFACE_INCLUDE_DIRECTORIES>)