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 b65e891 commit dccd206Copy full SHA for dccd206
py/usermod.cmake
@@ -42,6 +42,12 @@ endfunction()
42
# Include CMake files for user modules.
43
if (USER_C_MODULES)
44
foreach(USER_C_MODULE_PATH ${USER_C_MODULES})
45
+ # Confirm the provided path exists, show abspath if not to make it clearer to fix.
46
+ if (NOT EXISTS ${USER_C_MODULE_PATH})
47
+ get_filename_component(USER_C_MODULES_ABS "${USER_C_MODULE_PATH}" ABSOLUTE)
48
+ message(FATAL_ERROR "USER_C_MODULES doesn't exist: ${USER_C_MODULES_ABS}")
49
+ endif()
50
+
51
message("Including User C Module(s) from ${USER_C_MODULE_PATH}")
52
include(${USER_C_MODULE_PATH})
53
endforeach()
0 commit comments