Skip to content

Commit

Permalink
cmake switch to turn off test building
Browse files Browse the repository at this point in the history
  • Loading branch information
bloke committed Apr 14, 2018
1 parent da65617 commit 2bdee5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -301,7 +301,7 @@ target_link_libraries (tesseract libtesseract)

########################################

if (BUILD_GTEST AND EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
if (BUILD_TESTS AND EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
add_subdirectory(googletest)
add_executable(tesseract_tests tests/tesseracttests.cpp)
target_link_libraries(tesseract_tests gtest_main)
Expand Down

0 comments on commit 2bdee5c

Please sign in to comment.