From 67aad9ed13d9a6e16a6d72703839afcf80292737 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 26 Aug 2024 08:03:53 +0200 Subject: [PATCH] Compile src/lstm/tfnetwork.cpp only in builds with TensorFlow Signed-off-by: Stefan Weil --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index a611335c..6bae74e9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -549,11 +549,11 @@ libtesseract_lstm_la_SOURCES += src/lstm/reconfig.cpp libtesseract_lstm_la_SOURCES += src/lstm/reversed.cpp libtesseract_lstm_la_SOURCES += src/lstm/series.cpp libtesseract_lstm_la_SOURCES += src/lstm/stridemap.cpp -libtesseract_lstm_la_SOURCES += src/lstm/tfnetwork.cpp -libtesseract_lstm_la_SOURCES += src/lstm/weightmatrix.cpp if TENSORFLOW +libtesseract_lstm_la_SOURCES += src/lstm/tfnetwork.cpp libtesseract_lstm_la_SOURCES += src/lstm/tfnetwork.pb.cc endif +libtesseract_lstm_la_SOURCES += src/lstm/weightmatrix.cpp # Rules for src/textord.