From cf8aad35f87b92984e5602c02ba78644d2701f79 Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Fri, 14 Jun 2024 22:36:32 +0900 Subject: [PATCH] cmake: Fix include-path for ENABLE_DATAGEN=ON The commit b8dc1b7 moves the auto-generated files to the build-directory but the data-generator rule was not correctly revised. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b283daa..2ffcd91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,6 +161,9 @@ if(ENABLE_DATAGEN) add_executable(face-detector-dlib-hog-datagen src/face-detector-dlib-hog-datagen.cpp ) + target_include_directories(face-detector-dlib-hog-datagen PRIVATE + ${CMAKE_CURRENT_BINARY_DIR} + ) target_link_libraries(face-detector-dlib-hog-datagen dlib )