Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
a6121e16
Commit
a6121e16
authored
6 years ago
by
TSC21
Committed by
Nuno Marques
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Cmake build: do not change CMAKE_RUNTIME_OUTPUT_DIRECTORY if building with catkin
parent
c7eb21be
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+6
-1
6 additions, 1 deletion
CMakeLists.txt
platforms/posix/CMakeLists.txt
+6
-0
6 additions, 0 deletions
platforms/posix/CMakeLists.txt
with
12 additions
and
1 deletion
CMakeLists.txt
+
6
−
1
View file @
a6121e16
...
...
@@ -260,7 +260,12 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
set
(
CMAKE_EXPORT_COMPILE_COMMANDS ON
)
# For the catkin build process, unset build of dynamically-linked binaries
if
(
CATKIN_DEVEL_PREFIX
)
# and do not change CMAKE_RUNTIME_OUTPUT_DIRECTORY
if
(
NOT CATKIN_DEVEL_PREFIX
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${
PX4_BINARY_DIR
}
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG
${
PX4_BINARY_DIR
}
)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE
${
PX4_BINARY_DIR
}
)
else
()
SET
(
BUILD_SHARED_LIBS OFF
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
platforms/posix/CMakeLists.txt
+
6
−
0
View file @
a6121e16
...
...
@@ -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
}
\"
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment