Update CMakeLists.txt

This commit is contained in:
Egor Pugin 2017-03-10 00:24:05 +03:00 committed by GitHub
parent ae53ed6a07
commit b6eb8bebb1

View File

@ -245,7 +245,6 @@ if (NOT CPPAN_BUILD)
export(TARGETS libtesseract FILE ${CMAKE_BINARY_DIR}/TesseractTargets.cmake)
else()
target_link_libraries (libtesseract pvt.cppan.demo.danbloomberg.leptonica)
add_dependencies (libtesseract cppan)
file(WRITE ${CMAKE_BINARY_DIR}/TesseractTargets.cmake "include(${CMAKE_BINARY_DIR}/cppan.cmake)\n")
export(TARGETS libtesseract APPEND FILE ${CMAKE_BINARY_DIR}/TesseractTargets.cmake)
endif()