mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 11:13:33 +08:00
param: Build param without linker script
Changed to enable the posix_sitl_simple target to build and run param show * without using a linker script Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
||||
px4_posix_generate_builtin_commands(
|
||||
OUT apps.h
|
||||
MODULE_LIST ${module_libraries})
|
||||
|
||||
px4_generate_parameters()
|
||||
|
||||
add_executable(mainapp
|
||||
${CMAKE_SOURCE_DIR}/src/platforms/posix/main.cpp
|
||||
${CMAKE_BINARY_DIR}/parameters.c
|
||||
apps.h
|
||||
)
|
||||
|
||||
set(main_link_flags
|
||||
"-T${CMAKE_SOURCE_DIR}/cmake/posix/ld.script"
|
||||
)
|
||||
px4_join(OUT main_link_flags LIST ${main_link_flags} GLUE " ")
|
||||
set_target_properties(mainapp PROPERTIES LINK_FLAGS ${main_link_flags})
|
||||
|
||||
target_link_libraries(mainapp
|
||||
-Wl,--start-group
|
||||
${module_libraries}
|
||||
|
||||
Reference in New Issue
Block a user