set target_include_directories for can_clone_file as well
diff --git a/regress/CMakeLists.txt b/regress/CMakeLists.txt
index d0bb9c6..099bdee 100644
--- a/regress/CMakeLists.txt
+++ b/regress/CMakeLists.txt
@@ -25,6 +25,7 @@
 
 set(ALL_PROGRAMS ${TEST_PROGRAMS} ${DL_USERS} ${GETOPT_USERS} ${HOLE_USERS})
 add_executable(can_clone_file can_clone_file.c)
+target_include_directories(can_clone_file PRIVATE BEFORE ${PROJECT_SOURCE_DIR}/lib ${PROJECT_SOURCE_DIR}/src ${PROJECT_BINARY_DIR})
 
 set(ENV{srcdir} ${PROJECT_SOURCE_DIR}/regress)
 foreach(PROGRAM IN LISTS TEST_PROGRAMS)