Skip to content

Commit 6b6fc64

Browse files
author
Gianfranco Costamagna
committed
Find and use system googletest if available
1 parent 2857419 commit 6b6fc64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ if(MSVC)
88
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
99
endif()
1010

11-
add_subdirectory(gtest)
12-
11+
find_package(GTest)
12+
if(NOT GTEST_FOUND)
13+
add_subdirectory(gtest)
14+
endif()
1315

1416
####################################
1517
# src

0 commit comments

Comments
 (0)