Skip to content

Commit

Permalink
Add cmake_minimum_required to gtest.cmake.in (#20)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nhusung authored and facebook-github-bot committed Nov 9, 2022
1 parent c71ec37 commit 35cca08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sparta/cmake_modules/gtest.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

cmake_minimum_required(VERSION 3.0.2)
project("googletest")

include(ExternalProject)
ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest.git
Expand Down

0 comments on commit 35cca08

Please sign in to comment.