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 ()
@@ -53,6 +53,7 @@ endforeach()
5353
5454execute_process (
5555 WORKING_DIRECTORY ${COMPONENT_DIR}
56+ RESULT_VARIABLE libmicroros_ret
5657 COMMAND
5758 ${submake} -j -f libmicroros.mk
5859 X_CC=${CMAKE_C_COMPILER}
@@ -72,6 +73,9 @@ execute_process(
7273 IDF_VERSION_MINOR=${IDF_VERSION_MINOR}
7374 EXTRA_ROS_PACKAGES=${EXTRA_ROS_PACKAGES}
7475)
76+ if (libmicroros_ret AND NOT libmicroros_ret EQUAL 0)
77+ message (FATAL_ERROR "FAILED: ${libmicroros_ret} " )
78+ endif ()
7579
7680add_prebuilt_library (libmicroros-prebuilt ""
7781 REQUIRES lwip )
You can’t perform that action at this time.
0 commit comments