Skip to content

Commit 35cca08

Browse files
nhusungfacebook-github-bot
authored andcommitted
Add cmake_minimum_required to gtest.cmake.in (#20)
Summary: Recent versions of CMake (e.g. 3.24.2) appear to fail unless the `cmake_minimum_required` version is set. Furthermore, we set `project` to silence the corresponding warning. X-link: facebook/SPARTA#20 Reviewed By: yuxuanchen1997 Differential Revision: D41150912 Pulled By: arnaudvenet fbshipit-source-id: b1b37faa58ac5b24238ba196e1a8dbe202142272
1 parent c71ec37 commit 35cca08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sparta/cmake_modules/gtest.cmake.in

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.
55

6+
cmake_minimum_required(VERSION 3.0.2)
7+
project("googletest")
8+
69
include(ExternalProject)
710
ExternalProject_Add(googletest
811
GIT_REPOSITORY https://github.com/google/googletest.git

0 commit comments

Comments
 (0)