Skip to content

Commit 2bdee5c

Browse files
author
bloke
committed
cmake switch to turn off test building
1 parent da65617 commit 2bdee5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ target_link_libraries (tesseract libtesseract)
301301

302302
########################################
303303

304-
if (BUILD_GTEST AND EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
304+
if (BUILD_TESTS AND EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
305305
add_subdirectory(googletest)
306306
add_executable(tesseract_tests tests/tesseracttests.cpp)
307307
target_link_libraries(tesseract_tests gtest_main)

0 commit comments

Comments
 (0)