0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00

dlgoogletest.cmake: Make sure we always set OVPN_GTEST_VERSION

Otherwise ExternalProject_add defaults to "master"
which is not only was a changing target but now it
doesn't even exist anymore since they renamed it to
"main".

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
This commit is contained in:
Frank Lichtenheld 2021-11-16 14:16:48 +01:00 committed by David Sommerseth
parent 0baa4f19eb
commit e3a1f4a17a
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -15,6 +15,9 @@ include(mypragmaonce)
my_pragma_once()
if(NOT OVPN_GTEST_VERSION)
set(OVPN_GTEST_VERSION release-1.11.0)
endif()
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt.in googletest-download/CMakeLists.txt)
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
@ -40,4 +43,4 @@ add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/googletest-src
${CMAKE_CURRENT_BINARY_DIR}/googletest-build
EXCLUDE_FROM_ALL)
endif ()
endif ()