diff options
author | Damien George <damien@micropython.org> | 2021-03-31 00:45:43 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-04-01 16:27:38 +1100 |
commit | d87f42b0e53829052f17955ba1e17f938ae486fb (patch) | |
tree | 4c251495c6a5f51c15fb348f25f55bb4e6944dd7 /examples/usercmodule/cexample/micropython.cmake | |
parent | ec79e445027857d219d139cd31af578124a8e913 (diff) | |
download | micropython-d87f42b0e53829052f17955ba1e17f938ae486fb.tar.gz micropython-d87f42b0e53829052f17955ba1e17f938ae486fb.zip |
examples/usercmodules: Simplify user C module enabling.
It's a bit of a pitfall with user C modules that including them in the
build does not automatically enable them. This commit changes the docs and
examples for user C modules to encourage writers of user C modules to
enable them unconditionally. This makes things simpler and covers most use
cases.
See discussion in issue #6960, and also #7086.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'examples/usercmodule/cexample/micropython.cmake')
-rw-r--r-- | examples/usercmodule/cexample/micropython.cmake | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/usercmodule/cexample/micropython.cmake b/examples/usercmodule/cexample/micropython.cmake index 371a3eefa4..ba076a16b2 100644 --- a/examples/usercmodule/cexample/micropython.cmake +++ b/examples/usercmodule/cexample/micropython.cmake @@ -11,11 +11,5 @@ target_include_directories(usermod_cexample INTERFACE ${CMAKE_CURRENT_LIST_DIR} ) -# Enable the module automatically by adding the relevant compile definitions. -target_compile_definitions(usermod_cexample INTERFACE - MODULE_CEXAMPLE_ENABLED=1 -) - # Link our INTERFACE library to the usermod target. target_link_libraries(usermod INTERFACE usermod_cexample) - |