From 3747b5ba8424c3bcd0469090ff6fc464bbe58cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Fri, 3 Aug 2018 09:37:11 +0200 Subject: [PATCH] doc: Document new app boilerplate requirement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document that the boilerplate code included in all applications must now also include cmake_minimum_required(VERSION 3.8.2) Signed-off-by: Sebastian Bøe --- doc/application/application.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/application/application.rst b/doc/application/application.rst index 7ad1ef7f25d..c2fa29b66df 100644 --- a/doc/application/application.rst +++ b/doc/application/application.rst @@ -103,13 +103,20 @@ Follow these steps to create a new application directory. (Refer to #. Create an empty :file:`CMakeLists.txt` file in your application directory. -#. Include the :file:`boilerplate.cmake` to pull in the Zephyr build system: +#. Add boilerplate code that sets the minimum CMake version and pulls + in the Zephyr build system: .. code-block:: cmake + cmake_minimum_required(VERSION 3.8.2) include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) project(NONE) + .. note:: cmake_minimum_required is also invoked from + :file:`boilerplate.cmake`. The most recent of the two + versions will be enforced by CMake. + + #. Place your application source code in the :file:`src` sub-directory. For this example, we'll assume you created a file named :file:`src/main.c`.