File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ endif()
114114get_directory_property (compile_defs COMPILE_DEFINITIONS )
115115message (STATUS "All compile definitions: ${compile_defs} " )
116116
117- set (IS_LOCAL TRUE )
117+ set (IS_LOCAL FALSE )
118118
119119if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /.git" )
120120 # Get current commit
@@ -157,6 +157,19 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
157157
158158endif ()
159159
160+ if (NOT IS_LOCAL AND NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /dependency/thirdparty" )
161+
162+ execute_process (
163+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR} /scripts/download_thirdparty.sh
164+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
165+ RESULT_VARIABLE DOWNLOAD_RESULT
166+ )
167+ if (NOT DOWNLOAD_RESULT EQUAL 0)
168+ message (FATAL_ERROR "download_thirdparty.sh failed: ${DOWNLOAD_RESULT} " )
169+ endif ()
170+
171+ endif ()
172+
160173foreach (flags CMAKE_CXX_FLAGS CMAKE_C_FLAGS )
161174 string (REPLACE "-O3" "-Os" ${flags} "${${flags} }" )
162175endforeach ()
Original file line number Diff line number Diff line change 2424 git clone https://github.com/sophgo/tdl_sdk.git
2525 ` ` `
2626
27- * 下载第三方依赖
28-
29- ` ` ` shell
30- cd tdl_sdk
31- ./scripts/download_thirdparty.sh
32- ` ` `
33-
3427* nfs配置
3528
3629 * 安装nfs服务端
You can’t perform that action at this time.
0 commit comments