CMakeLists.txt 673 B

123456789101112131415161718
  1. idf_component_register(SRCS "pthread.c"
  2. "pthread_cond_var.c"
  3. "pthread_local_storage.c"
  4. INCLUDE_DIRS include)
  5. if(GCC_NOT_5_2_0)
  6. set(extra_link_flags "-u pthread_include_pthread_impl")
  7. list(APPEND extra_link_flags "-u pthread_include_pthread_cond_impl")
  8. list(APPEND extra_link_flags "-u pthread_include_pthread_local_storage_impl")
  9. endif()
  10. if(CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP)
  11. target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=vPortCleanUpTCB")
  12. endif()
  13. if(extra_link_flags)
  14. target_link_libraries(${COMPONENT_LIB} INTERFACE "${extra_link_flags}")
  15. endif()