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 ce9763f commit 2bd4bc8Copy full SHA for 2bd4bc8
py/usermod.cmake
@@ -42,6 +42,9 @@ endfunction()
42
# Include CMake files for user modules.
43
if (USER_C_MODULES)
44
foreach(USER_C_MODULE_PATH ${USER_C_MODULES})
45
+ if (IS_DIRECTORY ${USER_C_MODULE_PATH})
46
+ set(USER_C_MODULE_PATH "${USER_C_MODULE_PATH}/micropython.cmake")
47
+ endif()
48
if (NOT EXISTS ${USER_C_MODULE_PATH})
49
get_filename_component(USER_C_MODULES_ABS "${USER_C_MODULE_PATH}" ABSOLUTE)
50
message(FATAL_ERROR "USER_C_MODULES doesn't exist: ${USER_C_MODULES_ABS}")
0 commit comments