cmake: Make enable_language() clear about what it is actually doing
That call to enable_languages() is passed C CXX ASM which misleads the reader into thinking that the three languages are enabled in that call but at that point only ASM is actually because C and CXX were already implicitly enabled by the call to project() above. The suggested change removes the misleading C CXX arguments but we could as well make it clear in the project() call by passing LANGUAGES C CXX. Signed-off-by: Nicolas Lebedenco <nicolas@lebedenco.net>
This commit is contained in:
parent
a3092e3c6c
commit
4df926b02d
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ project(Zephyr-Kernel VERSION ${PROJECT_VERSION})
|
|||
# because clang from OneApi can't recognize them as asm files on
|
||||
# windows now.
|
||||
list(APPEND CMAKE_ASM_SOURCE_FILE_EXTENSIONS "S")
|
||||
enable_language(C CXX ASM)
|
||||
enable_language(ASM)
|
||||
|
||||
# The setup / configuration of the toolchain itself and the configuration of
|
||||
# supported compilation flags are now split, as this allows to use the toolchain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue