mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 04:30:35 +08:00
Merge pull request #2961 from dagar/cmake_fixes
cmake trivial fix to allow out of source builds
This commit is contained in:
@@ -698,6 +698,7 @@ function(px4_create_git_hash_header)
|
||||
COMMAND git log -n 1 --pretty=format:"%H"
|
||||
OUTPUT_VARIABLE git_desc
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
message(STATUS "GIT_DESC = ${git_desc}")
|
||||
set(git_desc_short)
|
||||
|
||||
Reference in New Issue
Block a user