Supplies stdlib declarations to NetX Duo add-ons
This commit is contained in:
1 parent
bd5fbd22c2
commit
26fd407a1e
1 file changed
+9
@@ -10,3 +10,12 @@ target_include_directories(${PROJECT_NAME}
|
|||||||
PUBLIC
|
PUBLIC
|
||||||
${CMAKE_CURRENT_LIST_DIR}/inc
|
${CMAKE_CURRENT_LIST_DIR}/inc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# These upstream clients use strtoul() or abs() without including stdlib.h.
|
||||||
|
set_property(SOURCE
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/../../third-party/netxduo/addons/pop3/nxd_pop3_client.c
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/../../third-party/netxduo/addons/smtp/nxd_smtp_client.c
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/../../third-party/netxduo/addons/sntp/nxd_sntp_client.c
|
||||||
|
TARGET_DIRECTORY ${PROJECT_NAME}
|
||||||
|
APPEND PROPERTY COMPILE_OPTIONS -include stdlib.h
|
||||||
|
)
|
||||||
Reference in new issue
Block a user