Skip to content
Commit 487f8618 authored by Luca Burelli's avatar Luca Burelli Committed by Benjamin Cabé
Browse files

cmake: llext: avoid always compiling extensions



In CMake, unless explicitly disabled, the 'add_library()' and
'add_executable()' functions add their result to the ALL target.

This is undesirable for 'add_llext_target()', since it causes the source
files for all defined extensions to be compiled even when the extension
is not otherwise used by the build process.

Add 'EXCLUDE_FROM_ALL' where appropriate so that the object files are
only built when the extension is actually used by the project.

Signed-off-by: default avatarLuca Burelli <l.burelli@arduino.cc>
parent 17dfafbe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment