[CMake] prefer local includes to installed headers

This commit is contained in:
nick black 2021-09-16 03:19:21 -05:00
parent 0686a1c390
commit 5109ff5cd8

View File

@ -496,6 +496,7 @@ foreach(f ${POCSRCS})
get_filename_component(fe "${f}" NAME_WE)
add_executable(${fe} ${f})
target_include_directories(${fe}
BEFORE
PRIVATE include src "${TERMINFO_INCLUDE_DIRS}"
"${PROJECT_BINARY_DIR}/include"
)
@ -511,6 +512,7 @@ foreach(f ${POCPPSRCS})
get_filename_component(fe "${f}" NAME_WE)
add_executable(${fe} ${f})
target_include_directories(${fe}
BEFORE
PRIVATE include src "${TERMINFO_INCLUDE_DIRS}"
"${PROJECT_BINARY_DIR}/include"
)