don't build compat.c with every poc

This commit is contained in:
nick black 2021-08-26 08:41:32 -04:00
parent 83976d7fd1
commit 06ff30f916

View File

@ -496,7 +496,7 @@ if(USE_POC)
file(GLOB POCSRCS CONFIGURE_DEPENDS src/poc/*.c)
foreach(f ${POCSRCS})
get_filename_component(fe "${f}" NAME_WE)
add_executable(${fe} ${f} ${COMPATSRC})
add_executable(${fe} ${f})
target_include_directories(${fe}
PRIVATE include src "${TERMINFO_INCLUDE_DIRS}"
"${PROJECT_BINARY_DIR}/include"
@ -511,7 +511,7 @@ endforeach()
file(GLOB POCPPSRCS CONFIGURE_DEPENDS src/pocpp/*.cpp)
foreach(f ${POCPPSRCS})
get_filename_component(fe "${f}" NAME_WE)
add_executable(${fe} ${f} ${COMPATSRC})
add_executable(${fe} ${f})
target_include_directories(${fe}
PRIVATE include src "${TERMINFO_INCLUDE_DIRS}"
"${PROJECT_BINARY_DIR}/include"