Minor improvements on package handling

This commit is contained in:
2024-11-19 10:03:44 +01:00
parent c3eb5e6a62
commit e2342350d0
6 changed files with 55 additions and 25 deletions

View File

@@ -2,14 +2,13 @@ include(GoogleTest)
set(DRAMSYS_TEST_RESOURCES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/resources")
option(DRAMSYS_USE_FETCH_CONTENT_GTEST "Enable FetchContent to provide gtest" ${DRAMSYS_USE_FETCH_CONTENT})
option(DRAMSYS_USE_FETCH_CONTENT_GOOGLE_TEST "Enable FetchContent to provide Google Test" ${DRAMSYS_USE_FETCH_CONTENT})
if (DRAMSYS_USE_FETCH_CONTENT)
if (DRAMSYS_USE_FETCH_CONTENT_GTEST)
if (DRAMSYS_USE_FETCH_CONTENT_GOOGLE_TEST)
FetchContent_Declare(
GTest
GIT_REPOSITORY https://github.com/google/googletest
GIT_TAG release-1.12.1
URL https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz
OVERRIDE_FIND_PACKAGE
)