CMake: Fix ldscript dependencies.

This commit is contained in:
Jared Boone 2016-07-03 18:48:39 -07:00
parent 0899c48735
commit 42190b9587
3 changed files with 6 additions and 3 deletions

View File

@ -294,7 +294,8 @@ include(${RULESPATH}/rules.cmake)
############################################################################## ##############################################################################
add_executable(${PROJECT_NAME}.elf ${CSRC} ${CPPSRC} ${ASMSRC} ${LDSCRIPT}) add_executable(${PROJECT_NAME}.elf ${CSRC} ${CPPSRC} ${ASMSRC})
set_target_properties(${PROJECT_NAME}.elf PROPERTIES LINK_DEPENDS ${LDSCRIPT})
add_definitions(${DEFS}) add_definitions(${DEFS})
include_directories(. ${INCDIR}) include_directories(. ${INCDIR})
link_directories(${LLIBDIR}) link_directories(${LLIBDIR})

View File

@ -253,7 +253,8 @@ macro(DeclareTargets chunk_tag name)
project("baseband_${name}") project("baseband_${name}")
include(${RULESPATH}/rules.cmake) include(${RULESPATH}/rules.cmake)
add_executable(${PROJECT_NAME}.elf $<TARGET_OBJECTS:baseband_shared> ${MODE_CPPSRC} ${LDSCRIPT}) add_executable(${PROJECT_NAME}.elf $<TARGET_OBJECTS:baseband_shared> ${MODE_CPPSRC})
set_target_properties(${PROJECT_NAME}.elf PROPERTIES LINK_DEPENDS ${LDSCRIPT})
add_definitions(${DEFS}) add_definitions(${DEFS})
include_directories(. ${INCDIR}) include_directories(. ${INCDIR})
link_directories(${LLIBDIR}) link_directories(${LLIBDIR})

View File

@ -193,7 +193,8 @@ include(${RULESPATH}/rules.cmake)
############################################################################## ##############################################################################
add_executable(${PROJECT_NAME}.elf ${CSRC} ${CPPSRC} ${ASMSRC} ${LDSCRIPT}) add_executable(${PROJECT_NAME}.elf ${CSRC} ${CPPSRC} ${ASMSRC})
set_target_properties(${PROJECT_NAME}.elf PROPERTIES LINK_DEPENDS ${LDSCRIPT})
add_definitions(${DEFS}) add_definitions(${DEFS})
include_directories(. ${INCDIR}) include_directories(. ${INCDIR})
link_directories(${LLIBDIR}) link_directories(${LLIBDIR})