adds linker group to setup_target
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ endif()
|
|||||||
target_include_directories(netxduo PRIVATE ${CMAKE_CURRENT_LIST_DIR}/port/moonlight)
|
target_include_directories(netxduo PRIVATE ${CMAKE_CURRENT_LIST_DIR}/port/moonlight)
|
||||||
target_link_libraries(netxduo PUBLIC threadx c)
|
target_link_libraries(netxduo PUBLIC threadx c)
|
||||||
###############################################################################
|
###############################################################################
|
||||||
project(threadx_demo C ASM)
|
project(threadx_demo C CXX ASM)
|
||||||
set(TARGET_MEM "ram" CACHE STRING "memory map to use")
|
set(TARGET_MEM "ram" CACHE STRING "memory map to use")
|
||||||
option(NX_DEBUG "compile netxduo debug output in" OFF)
|
option(NX_DEBUG "compile netxduo debug output in" OFF)
|
||||||
option(NX_DEBUG_PACKET "compile netxduo debug output for ethernet packets in" OFF)
|
option(NX_DEBUG_PACKET "compile netxduo debug output for ethernet packets in" OFF)
|
||||||
@@ -66,7 +66,7 @@ function(setup_target TARGET)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ST_LIBRARIES)
|
if(ST_LIBRARIES)
|
||||||
target_link_libraries(${TARGET} PRIVATE ${ST_LIBRARIES})
|
target_link_libraries(${TARGET} PRIVATE -Wl,--start-group ${ST_LIBRARIES} -Wl,--end-group)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ST_TARGET_MEM)
|
if(ST_TARGET_MEM)
|
||||||
|
|||||||
Reference in New Issue
Block a user