mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Cmake build: do not change CMAKE_RUNTIME_OUTPUT_DIRECTORY if building with catkin
This commit is contained in:
@@ -5,6 +5,12 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
get_property(module_libraries GLOBAL PROPERTY PX4_MODULE_LIBRARIES)
|
||||
|
||||
# When building with catkin, do not change CMAKE_RUNTIME_OUTPUT_DIR from
|
||||
# CMAKE_CURRENT_BINARY_DIR ''./platforms/posix' to './bin'
|
||||
if (NOT CATKIN_DEVEL_PREFIX)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
endif()
|
||||
|
||||
set(PX4_SHELL_COMMAND_PREFIX "px4-")
|
||||
|
||||
add_definitions("-DPX4_SHELL_COMMAND_PREFIX=\"${PX4_SHELL_COMMAND_PREFIX}\"")
|
||||
|
||||
Reference in New Issue
Block a user