fix include dir
@@ -55,6 +55,8 @@ endif()
add_library(iotivity-port INTERFACE)
+target_include_directories(iotivity-port INTERFACE BEFORE ${PORT_DIR})
+
target_sources(iotivity-port INTERFACE
${PORT_DIR}/abort.c
${PORT_DIR}/clock.c
@@ -71,10 +73,6 @@ target_sources(iotivity-port INTERFACE
)
endif()
-target_include_directories(iotivity-port INTERFACE
- ${PORT_DIR}
-)
-
if(UNIX)
target_link_libraries(iotivity-port INTERFACE pthread m)
endif()
