Skip to content

Commit

Permalink
Fix PX4_CMAKE_BUILD_TYPE=Debug configuration
Browse files Browse the repository at this point in the history
Set CMAKE_RUNTIME_OUTPUT_DIR_DEBUG & _RELEASE to match
CMAKE_RUNTIME_OUTPUT_DIR as is already done in top level CMakeLists.txt.

Fixes Issue 16445 - px4-alias.sh: not found

Co-authored-by: Dan George <[email protected]>
  • Loading branch information
dgeorge83616 and danduril authored Dec 25, 2020
1 parent 92afe45 commit 051bcf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platforms/posix/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ get_property(module_libraries GLOBAL PROPERTY PX4_MODULE_LIBRARIES)
# CMAKE_CURRENT_BINARY_DIR ''./platforms/posix' to './bin'
if (NOT CATKIN_DEVEL_PREFIX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/bin)
endif()

set(PX4_SHELL_COMMAND_PREFIX "px4-")
Expand Down

0 comments on commit 051bcf7

Please sign in to comment.