From dbc60d99c5be6e8d59f46a164e9b3a3482f2e9c2 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Tue, 8 Sep 2015 18:50:11 -0700 Subject: [PATCH] cmake: qurt fix to build shared lib, not executable Signed-off-by: Mark Charlebois --- cmake/qurt/configs/config-qurt-hil.cmake | 1 + src/firmware/qurt/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/qurt/configs/config-qurt-hil.cmake b/cmake/qurt/configs/config-qurt-hil.cmake index 694aa8d0ea..d9d3e2ee13 100644 --- a/cmake/qurt/configs/config-qurt-hil.cmake +++ b/cmake/qurt/configs/config-qurt-hil.cmake @@ -6,6 +6,7 @@ function(px4_set_config_modules out_module_list) drivers/led drivers/rgbled modules/sensors + modules/uORB # drivers/blinkm # drivers/ms5611 diff --git a/src/firmware/qurt/CMakeLists.txt b/src/firmware/qurt/CMakeLists.txt index fa0720c743..b5babecf11 100644 --- a/src/firmware/qurt/CMakeLists.txt +++ b/src/firmware/qurt/CMakeLists.txt @@ -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}