Update CMakeLists.txt

Add "OUTPUT_VARIABLE cmd_res"  when execute the "COMMAND git clone"
This commit is contained in:
livox
2019-04-29 10:08:40 +08:00
committed by GitHub
parent ccf3bd19ca
commit c793b301c9

View File

@@ -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()