cmake: qurt fix to build shared lib, not executable

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-09-08 18:50:11 -07:00
parent 75f1f91784
commit dbc60d99c5
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ function(px4_set_config_modules out_module_list)
drivers/led
drivers/rgbled
modules/sensors
modules/uORB
# drivers/blinkm
# drivers/ms5611

View File

@ -25,7 +25,7 @@ px4_qurt_generate_builtin_commands(
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
add_executable(mainapp builtin_commands.cpp)
add_library(mainapp builtin_commands.cpp)
target_link_libraries(mainapp
-Wl,--whole-archive
${module_list}