blob: f04cdba5c13bdda0df78b8a142b4df0bf68cf24f [file] [log] [blame]
if (NOT TARGET pico_atomic)
pico_add_library(pico_atomic)
target_sources(pico_atomic INTERFACE
${CMAKE_CURRENT_LIST_DIR}/atomic.c
)
target_compile_options(pico_atomic INTERFACE
# -Wno-atomic-alignment
)
target_include_directories(pico_atomic_headers INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
target_link_libraries(pico_atomic INTERFACE pico_sync)
endif()