Check to ensure GTest alias doesn't exist in parent project.

This commit is contained in:
Nathan Moinvaziri 2022-11-29 15:59:10 -08:00
parent 5354bc842c
commit 4d13283bad

View File

@ -4,7 +4,9 @@ include(FetchContent)
enable_language(CXX)
find_package(GTest QUIET)
if(NOT TARGET GTest::GTest)
find_package(GTest QUIET)
endif()
if(NOT TARGET GTest::GTest)
if (WIN32)