From 5109ff5cd8f1d6e50bb59a9de4998be0ff205695 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 16 Sep 2021 03:19:21 -0500 Subject: [PATCH] [CMake] prefer local includes to installed headers --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index beced0586..6ecb62f98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" )