build: Fix rpserver and rpproxy CMake builds

argtable3 include directories are appended as NUTTX_INCLUDE_DIRECTORIES
property, symlink creation is no longer needed.

Signed-off-by: Daniel Jasinski <jasinskidaniel95szcz@gmail.com>
This commit is contained in:
Daniel Jasinski 2024-08-20 07:21:56 +02:00 committed by Alan Carvalho de Assis
parent dcf1a05956
commit 7ff3bc4674

View File

@ -81,10 +81,11 @@ if(CONFIG_SYSTEM_ARGTABLE3)
target_sources(argtable3 PRIVATE ${SRCS})
if(NOT EXISTS ${CMAKE_BINARY_DIR}/apps/include/argtable3.h)
file(CREATE_LINK ${CMAKE_CURRENT_LIST_DIR}/argtable3/src/argtable3.h
${CMAKE_BINARY_DIR}/apps/include/argtable3.h SYMBOLIC)
endif()
set_property(
TARGET nuttx
APPEND
PROPERTY NUTTX_INCLUDE_DIRECTORIES
${NUTTX_APPS_DIR}/system/argtable3/argtable3/src)
target_compile_options(argtable3 PRIVATE -DARG_REPLACE_GETOPT=0)