已合并
refactor: init_cann_project() 移至 dependencies.cmake 之后调用 #8702
zhaoyingdong创建于 18 天前
refactor: init_cann_project() 移至 dependencies.cmake 之后调用 #8702
已合并
zhaoyingdong创建于 18 天前
1 个文件变更+1-1
@@ -123,6 +123,7 @@ if(DOWNLOAD_OPS_TEST_KIT)
123 include(cmake/third_party/ops_test_kit.cmake)123 include(cmake/third_party/ops_test_kit.cmake)
124endif()124endif()
125include(cmake/dependencies.cmake)125include(cmake/dependencies.cmake)
126+init_cann_project()
126include(cmake/third_party/ops-tensor.cmake)127include(cmake/third_party/ops-tensor.cmake)
127add_cann_third_party(json)128add_cann_third_party(json)
128add_cann_third_party(abseil-cpp)129add_cann_third_party(abseil-cpp)
@@ -139,7 +140,6 @@ if(ENABLE_CUSTOM AND ENABLE_ASC_BUILD)
139 include(cmake/custom_kernel.cmake)140 include(cmake/custom_kernel.cmake)
140endif()141endif()
141 142 
142-init_cann_project()
143if(BUILD_WITH_INSTALLED_DEPENDENCY_CANN_PKG)143if(BUILD_WITH_INSTALLED_DEPENDENCY_CANN_PKG)
144 check_cann_pkg_build_deps("ops-nn")144 check_cann_pkg_build_deps("ops-nn")
145endif()145endif()