mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 05:38:31 +09:00
[Chore] (CMake): Use googletest v1.17.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.14)
|
cmake_minimum_required(VERSION 3.24)
|
||||||
project(MobileGLTest)
|
project(MobileGLTest)
|
||||||
|
|
||||||
message(STATUS "Generating build files for MobileGL Test...")
|
message(STATUS "Generating build files for MobileGL Test...")
|
||||||
@@ -14,8 +14,8 @@ set(MGL_ROOT ${CMAKE_CURRENT_LIST_DIR}/../..)
|
|||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
googletest
|
googletest
|
||||||
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||||
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
GIT_TAG v1.17.0
|
||||||
)
|
)
|
||||||
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
||||||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||||
|
|||||||
Reference in New Issue
Block a user