Skip to content

Commit

Permalink
Check to ensure GTest alias doesn't exist in parent project.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Nov 30, 2022
1 parent 14dbc6b commit 75077ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 75077ad

Please sign in to comment.