1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 09:16:01 +03:00

[CMAKE] Add support for having targets that are not part of the release

Add a SKIP_RELEASES target argument
This commit is contained in:
Alberto García Hierro 2020-08-10 10:43:05 +01:00
parent 77e3040523
commit bd490a52f3
16 changed files with 43 additions and 9 deletions

View file

@ -106,6 +106,7 @@ endfunction()
macro(define_target_stm32f7 subfamily size)
function(target_stm32f7${subfamily}x${size} name)
set(func_ARGV ARGV)
string(TOUPPER ${size} upper_size)
get_stm32_flash_size(flash_size ${size})
set(definitions
@ -119,7 +120,7 @@ macro(define_target_stm32f7 subfamily size)
STARTUP startup_stm32f7${subfamily}xx.s
COMPILE_DEFINITIONS ${definitions}
LINKER_SCRIPT stm32_flash_f7${subfamily}x${size}
${ARGN}
${${func_ARGV}}
)
endfunction()
endmacro()