make host pico_platform.h and binary_info.h CMakeLists.txt safe for inclusion in non SDK build (#388)
* make host pico_platform.h and binary_info.h CMakeLists.txt safe for inclusion in non SDK build * fix comment
This commit is contained in:
@ -2,7 +2,11 @@ add_library(pico_binary_info_headers INTERFACE)
|
||||
|
||||
target_include_directories(pico_binary_info_headers INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
|
||||
pico_add_impl_library(pico_binary_info)
|
||||
if (COMMAND pico_add_platform_library)
|
||||
pico_add_platform_library(pico_binary_info)
|
||||
else()
|
||||
add_library(pico_binary_info INTERFACE)
|
||||
endif()
|
||||
|
||||
target_link_libraries(pico_binary_info INTERFACE pico_binary_info_headers)
|
||||
|
||||
|
Reference in New Issue
Block a user