From c793b301c91873ee8529064fe9666e26cc0b0553 Mon Sep 17 00:00:00 2001 From: livox Date: Mon, 29 Apr 2019 10:08:40 +0800 Subject: [PATCH] Update CMakeLists.txt Add "OUTPUT_VARIABLE cmd_res" when execute the "COMMAND git clone" --- livox_ros_driver/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/livox_ros_driver/CMakeLists.txt b/livox_ros_driver/CMakeLists.txt index 6ef47f1..431fb6d 100755 --- a/livox_ros_driver/CMakeLists.txt +++ b/livox_ros_driver/CMakeLists.txt @@ -60,7 +60,7 @@ if((NOT LIVOX_SDK_LIBRARY) OR (NOT EXISTS ${LIVOX_SDK_LIBRARY})) MESSAGE(${res}) ENDFOREACH() - execute_process(COMMAND git clone https://github.com/Livox-SDK/Livox-SDK.git ${CMAKE_CURRENT_SOURCE_DIR}/Livox-SDK) + execute_process(COMMAND git clone https://github.com/Livox-SDK/Livox-SDK.git ${CMAKE_CURRENT_SOURCE_DIR}/Livox-SDK OUTPUT_VARIABLE cmd_res) FOREACH(res ${cmd_res}) MESSAGE(${res}) ENDFOREACH()