1add_header_library( 2 mutex_common 3 HDRS 4 mutex_common.h 5) 6 7if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS}) 8 add_subdirectory(${LIBC_TARGET_OS}) 9endif() 10 11if(TARGET libc.src.__support.threads.${LIBC_TARGET_OS}.mutex) 12 add_header_library( 13 mutex 14 HDRS 15 mutex.h 16 DEPENDS 17 .${LIBC_TARGET_OS}.mutex 18 ) 19endif() 20