1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-10-31 15:16:22 +00:00

Be more strict in googletest requirements

This commit is contained in:
Carles Fernandez 2024-02-25 10:08:43 +01:00
parent 0a66cca381
commit a10a465d30
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -375,7 +375,9 @@ if(CMAKE_CROSSCOMPILING OR CMAKE_VERSION VERSION_LESS "3.13")
set(GNSSSDR_PROTOCOLBUFFERS_LOCAL_VERSION "21.12")
endif()
if(CMAKE_VERSION VERSION_LESS "3.13")
if(CMAKE_VERSION VERSION_LESS "3.13" OR
(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.3.1) OR
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0))
set(GNSSSDR_GTEST_LOCAL_VERSION "1.12.1")
endif()