make all non hardware_ libraries foo add C preprocessor definition LIB_FOO=1, and remove bespoke definitions which were all undocumented anyway (#374)
This commit is contained in:
@ -1,15 +1,11 @@
|
||||
if (NOT TARGET pico_multicore)
|
||||
add_library(pico_multicore INTERFACE)
|
||||
pico_add_impl_library(pico_multicore)
|
||||
|
||||
target_sources(pico_multicore INTERFACE
|
||||
${CMAKE_CURRENT_LIST_DIR}/multicore.c)
|
||||
|
||||
target_include_directories(pico_multicore INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
|
||||
target_compile_definitions(pico_multicore INTERFACE
|
||||
PICO_MULTICORE=1
|
||||
)
|
||||
|
||||
target_link_libraries(pico_multicore INTERFACE pico_sync)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user