cmake: Move root CMakeLists.txt's comment-header to top
Inform user early on that ./CMakeLists.txt is not the top-level file. Signed-off-by: Mark Ruvald Pedersen <mped@oticon.com>
This commit is contained in:
parent
94a9d8086c
commit
59036db195
|
@ -1,3 +1,14 @@
|
|||
# *DOCUMENTATION*
|
||||
#
|
||||
# Note that this is *NOT* the top-level CMakeLists.txt. That's in the
|
||||
# application. See the Application Development Primer documentation
|
||||
# for details.
|
||||
#
|
||||
# To see a list of typical targets execute "make usage"
|
||||
# More info can be located in ./README.rst
|
||||
# Comments in this file are targeted only to the developer, do not
|
||||
# expect to learn how to build the kernel reading this file.
|
||||
|
||||
if(NOT DEFINED ZEPHYR_BINARY_DIR)
|
||||
message(FATAL_ERROR "A user error has occured.
|
||||
cmake was invoked with '${CMAKE_CURRENT_LIST_DIR}' specified as the source directory,
|
||||
|
@ -11,17 +22,6 @@ endif()
|
|||
project(Zephyr-Kernel VERSION ${PROJECT_VERSION})
|
||||
enable_language(C CXX ASM)
|
||||
|
||||
# *DOCUMENTATION*
|
||||
#
|
||||
# Note that this is *NOT* the top-level CMakeLists.txt. That's in the
|
||||
# application. See the Application Development Primer documentation
|
||||
# for details.
|
||||
#
|
||||
# To see a list of typical targets execute "make usage"
|
||||
# More info can be located in ./README.rst
|
||||
# Comments in this file are targeted only to the developer, do not
|
||||
# expect to learn how to build the kernel reading this file.
|
||||
|
||||
# Verify that the toolchain can compile a dummy file, if it is not we
|
||||
# won't be able to test for compatiblity with certain C flags.
|
||||
check_c_compiler_flag("" toolchain_is_ok)
|
||||
|
|
Loading…
Reference in a new issue