version CMakeLists.txt: add ver_gen dependency

Necessary so that build_git_version.h is generated before version.c is
compiled.

Error before:
../src/lib/version/version.c:152:31: error: 'PX4_GIT_TAG_STR' undeclared (first use in this function)
  return version_tag_to_number(PX4_GIT_TAG_STR);
This commit is contained in:
Beat Küng 2016-12-21 16:17:07 +01:00 committed by Lorenz Meier
parent cf21d8f554
commit 0c7e9b0e6d
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ px4_add_module(
SRCS
version.c
DEPENDS
ver_gen
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :