Browse Source

Fixed SITL build (and clang posix build)

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
sbg
Mark Charlebois 9 years ago committed by Julian Oes
parent
commit
d8dd8ab67d
  1. 1
      cmake/configs/posix_sitl_default.cmake
  2. 2
      src/firmware/posix/CMakeLists.txt

1
cmake/configs/posix_sitl_default.cmake

@ -18,7 +18,6 @@ set(config_module_list
platforms/posix/drivers/gyrosim platforms/posix/drivers/gyrosim
platforms/posix/drivers/rgbledsim platforms/posix/drivers/rgbledsim
platforms/posix/drivers/ledsim platforms/posix/drivers/ledsim
platforms/posix/drivers/df_imu
systemcmds/param systemcmds/param
systemcmds/mixer systemcmds/mixer
systemcmds/ver systemcmds/ver

2
src/firmware/posix/CMakeLists.txt

@ -30,7 +30,7 @@ else()
${CMAKE_SOURCE_DIR}/src/platforms/posix/main.cpp ${CMAKE_SOURCE_DIR}/src/platforms/posix/main.cpp
apps.h apps.h
) )
if (NOT ${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE) if (${CMAKE_C_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
target_link_libraries(mainapp target_link_libraries(mainapp
-Wl,--start-group -Wl,--start-group
${module_libraries} ${module_libraries}

Loading…
Cancel
Save