summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2018-08-18 15:51:13 +0300
committerDamien George <damien.p.george@gmail.com>2018-09-14 13:21:13 +1000
commit0bce110872affc372ec5158cebce507848a76b8a (patch)
tree32efddfa62303147715b7798e8910ed5706d527e
parented1a5bc88e9459f8103f589901a7dda6cd88c3c3 (diff)
zephyr/CMakeLists: Update for latest Zephyr CMake usage refactorings.
Added cmake_minimum_required and updated target_link_libraries directives.
-rw-r--r--ports/zephyr/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/zephyr/CMakeLists.txt b/ports/zephyr/CMakeLists.txt
index 84b0e8190..8e0162417 100644
--- a/ports/zephyr/CMakeLists.txt
+++ b/ports/zephyr/CMakeLists.txt
@@ -1,3 +1,5 @@
+cmake_minimum_required(VERSION 3.8)
+
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(NONE)
@@ -5,7 +7,7 @@ target_sources(app PRIVATE src/zephyr_start.c src/zephyr_getchar.c)
add_library(libmicropython STATIC IMPORTED)
set_target_properties(libmicropython PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libmicropython.a)
-target_link_libraries(app libmicropython)
+target_link_libraries(app PUBLIC libmicropython)
zephyr_get_include_directories_for_lang_as_string(C includes)
zephyr_get_system_include_directories_for_lang_as_string(C system_includes)