Skip to content

Commit e76d81a

Browse files
committed
Include src/training when exporting compile commands with cmake
`cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..` is used to get the file compile_commands.json which is required by clang-tidy. Export compile commands for all source files, not only those from the default build, so clang-tidy can cover all source files. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent e262d71 commit e76d81a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ include_directories(src/opencl)
233233
include_directories(src/textord)
234234
include_directories(src/viewer)
235235
include_directories(src/wordrec)
236+
if(CMAKE_EXPORT_COMPILE_COMMANDS)
237+
include_directories(src/training)
238+
endif()
236239

237240
########################################
238241
# LIBRARY tesseract

0 commit comments

Comments
 (0)