Skip to content

Commit dca93ce

Browse files
authored
Merge pull request #775 from caic99/develop
Fix GTest found condition typo.
2 parents cfbca84 + 18457c9 commit dca93ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ IF (BUILD_TESTING)
226226
find_package(Threads)
227227
set(CMAKE_CXX_STANDARD_REQUIRED ON)
228228
find_package(GTest HINTS /usr/local/lib/ ${GTEST_DIR})
229-
if(NOT DEFINED ${GTest_FOUND})
229+
if(NOT ${GTest_FOUND})
230230
include(FetchContent)
231231
FetchContent_Declare(
232232
googletest

0 commit comments

Comments
 (0)