File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1682,7 +1682,11 @@ if (ENABLE_UNITTESTS)
16821682
16831683 set_tests_properties (${tests_srt} PROPERTIES RUN_SERIAL TRUE )
16841684 if (ENABLE_UNITTESTS_DISCOVERY)
1685- gtest_discover_tests(test -srt)
1685+ if (NOT COMMAND gtest_discover_tests)
1686+ message (WARNING "No command gtest_discover_tests provided by GTtest; no test discovery" )
1687+ else ()
1688+ gtest_discover_tests(test -srt)
1689+ endif ()
16861690 endif ()
16871691
16881692 enable_testing ()
Original file line number Diff line number Diff line change 11# code copied from https://crascit.com/2015/07/25/cmake-gtest/
2- cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
2+ cmake_minimum_required (VERSION 3.10 FATAL_ERROR)
33
4- project (googletest-download NONE )
4+ project (GOOGLETEST_DOWNLOAD )
55
66include (ExternalProject)
77
You can’t perform that action at this time.
0 commit comments