File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ idf_component_register(SRCS "network_interfaces/uros_ethernet_netif.c" "network_
33 REQUIRES nvs_flash esp_wifi esp_eth lwip )
44
55if (CMAKE_GENERATOR STREQUAL "Unix Makefiles" )
6- set (submake "$(MAKE) " )
6+ set (submake "make " )
77else ()
88set (submake "make" )
99endif ()
@@ -50,6 +50,7 @@ endforeach()
5050
5151execute_process (
5252 WORKING_DIRECTORY ${COMPONENT_DIR}
53+ RESULT_VARIABLE libmicroros_ret
5354 COMMAND
5455 ${submake} -j -f libmicroros.mk
5556 X_CC=${CMAKE_C_COMPILER}
@@ -69,6 +70,9 @@ execute_process(
6970 IDF_VERSION_MINOR=${IDF_VERSION_MINOR}
7071 EXTRA_ROS_PACKAGES=${EXTRA_ROS_PACKAGES}
7172)
73+ if (libmicroros_ret AND NOT libmicroros_ret EQUAL 0)
74+ message (FATAL_ERROR "FAILED: ${libmicroros_ret} " )
75+ endif ()
7276
7377add_prebuilt_library (libmicroros-prebuilt ""
7478 REQUIRES lwip )
You can’t perform that action at this time.
0 commit comments