Skip to content

Commit 4b39afb

Browse files
committed
Fix #513 - ninja compilation of enc_bootloader
Ninja was treating ${target}.ld and ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld as the same file, despite the first just being a target name not a file - fixed by changing . to _
1 parent 7fe60d6 commit 4b39afb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootloaders/encrypted/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ function(add_linker_script target origin length)
3030
-Doutput_file:FILEPATH=${CMAKE_CURRENT_BINARY_DIR}/${target}.ld
3131
-P "${CMAKE_CURRENT_BINARY_DIR}/make_linker_script.cmake"
3232
DEPENDS ${PICO_LINKER_SCRIPT_PATH}/memmap_no_flash.ld)
33-
add_custom_target(${target}.ld DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld)
34-
add_dependencies(${target} ${target}.ld)
33+
add_custom_target(${target}_ld DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld)
34+
add_dependencies(${target} ${target}_ld)
3535
pico_set_linker_script(${target} ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld)
3636
endfunction()
3737

0 commit comments

Comments
 (0)