We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccd206 commit 78d017fCopy full SHA for 78d017f
py/usermod.cmake
@@ -42,6 +42,10 @@ endfunction()
42
# Include CMake files for user modules.
43
if (USER_C_MODULES)
44
foreach(USER_C_MODULE_PATH ${USER_C_MODULES})
45
+ # If a directory is given, append the micropython.cmake to it.
46
+ if (IS_DIRECTORY ${USER_C_MODULE_PATH})
47
+ set(USER_C_MODULE_PATH "${USER_C_MODULE_PATH}/micropython.cmake")
48
+ endif()
49
# Confirm the provided path exists, show abspath if not to make it clearer to fix.
50
if (NOT EXISTS ${USER_C_MODULE_PATH})
51
get_filename_component(USER_C_MODULES_ABS "${USER_C_MODULE_PATH}" ABSOLUTE)
0 commit comments