samples: application_development: fix #11074

external_lib using the wrong ar

Signed-off-by: Zhang WenChao <zhangwenchao001@gmail.com>
This commit is contained in:
Zhang WenChao 2018-11-07 13:13:38 +08:00 committed by Carles Cufí
parent 16fe6c5473
commit 93d3065235

View file

@ -42,6 +42,7 @@ ExternalProject_Add(
make
PREFIX=${mylib_build_dir}
CC=${CMAKE_C_COMPILER}
AR=${CMAKE_AR}
CFLAGS=${external_project_cflags}
INSTALL_COMMAND "" # This particular build system has no install command
BUILD_BYPRODUCTS ${MYLIB_LIB_DIR}/libmylib.a