Rework ordering of cmake, so that libraries in subdirectories can add to internal lists as PICO_SDK_POST_LIST_FILES, PICO_CONFIG_HEADER_FILES etc. (#382)

Move generation of config header later, so it gets to include all values for PICO_CONFIG_HEADER_FILES
This commit is contained in:
Graham Sanderson
2021-05-11 10:33:34 -05:00
committed by GitHub
parent 9396b9c7e1
commit e57b99a652
8 changed files with 54 additions and 33 deletions

View File

@ -32,4 +32,6 @@ endmacro()
set(PICO_HOST_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")
function(pico_define_boot_stage2 NAME)
add_executable(${NAME} ${PICO_HOST_DIR}/boot_stage2.c)
endfunction()
endfunction()
pico_promote_common_scope_vars()