Unverified Commit f1c72364 authored by Sang Ik Lee's avatar Sang Ik Lee Committed by GitHub

Don't use git shallow clone. (#2492)

parent b9ff5d1f
...@@ -336,11 +336,6 @@ if(NGRAPH_DEBUG_ENABLE) ...@@ -336,11 +336,6 @@ if(NGRAPH_DEBUG_ENABLE)
add_definitions(-DNGRAPH_DEBUG_ENABLE) add_definitions(-DNGRAPH_DEBUG_ENABLE)
endif() endif()
if(NOT (${CMAKE_VERSION} VERSION_LESS 3.6))
set(NGRAPH_GIT_ARGS GIT_SHALLOW 1)
message(STATUS "nGraph using git shallow copy.")
endif()
#----------------------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------------------
# External projects install directory # External projects install directory
#----------------------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------------------
......
...@@ -40,7 +40,6 @@ ExternalProject_Add( ...@@ -40,7 +40,6 @@ ExternalProject_Add(
PREFIX cldnn PREFIX cldnn
GIT_REPOSITORY ${CLDNN_GIT_REPO_URL} GIT_REPOSITORY ${CLDNN_GIT_REPO_URL}
GIT_TAG ${CLDNN_GIT_LABEL} GIT_TAG ${CLDNN_GIT_LABEL}
${NGRAPH_GIT_ARGS}
# Disable install step # Disable install step
INSTALL_COMMAND "" INSTALL_COMMAND ""
UPDATE_COMMAND "" UPDATE_COMMAND ""
......
...@@ -29,7 +29,6 @@ ExternalProject_Add( ...@@ -29,7 +29,6 @@ ExternalProject_Add(
PREFIX eigen PREFIX eigen
GIT_REPOSITORY ${EIGEN_GIT_URL} GIT_REPOSITORY ${EIGEN_GIT_URL}
GIT_TAG ${EIGEN_GIT_TAG} GIT_TAG ${EIGEN_GIT_TAG}
${NGRAPH_GIT_ARGS}
UPDATE_COMMAND "" UPDATE_COMMAND ""
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
...@@ -52,7 +52,6 @@ ExternalProject_Add( ...@@ -52,7 +52,6 @@ ExternalProject_Add(
PREFIX gtest PREFIX gtest
GIT_REPOSITORY ${GTEST_GIT_REPO_URL} GIT_REPOSITORY ${GTEST_GIT_REPO_URL}
GIT_TAG ${GTEST_GIT_LABEL} GIT_TAG ${GTEST_GIT_LABEL}
${NGRAPH_GIT_ARGS}
# Disable install step # Disable install step
INSTALL_COMMAND "" INSTALL_COMMAND ""
UPDATE_COMMAND "" UPDATE_COMMAND ""
......
...@@ -46,7 +46,6 @@ ExternalProject_Add( ...@@ -46,7 +46,6 @@ ExternalProject_Add(
DEPENDS ext_halide_llvm DEPENDS ext_halide_llvm
GIT_REPOSITORY ${HALIDE_GIT_REPO_URL} GIT_REPOSITORY ${HALIDE_GIT_REPO_URL}
GIT_TAG ${HALIDE_GIT_TAG} GIT_TAG ${HALIDE_GIT_TAG}
${NGRAPH_GIT_ARGS}
UPDATE_COMMAND "" UPDATE_COMMAND ""
CMAKE_GENERATOR ${CMAKE_GENERATOR} CMAKE_GENERATOR ${CMAKE_GENERATOR}
CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM} CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM}
......
...@@ -29,7 +29,6 @@ ExternalProject_Add( ...@@ -29,7 +29,6 @@ ExternalProject_Add(
PREFIX json PREFIX json
GIT_REPOSITORY ${JSON_GIT_REPO_URL} GIT_REPOSITORY ${JSON_GIT_REPO_URL}
GIT_TAG ${JSON_GIT_LABEL} GIT_TAG ${JSON_GIT_LABEL}
${NGRAPH_GIT_ARGS}
# Disable install step # Disable install step
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
...@@ -27,7 +27,6 @@ ExternalProject_Add( ...@@ -27,7 +27,6 @@ ExternalProject_Add(
PREFIX clang PREFIX clang
GIT_REPOSITORY https://github.com/llvm-mirror/clang.git GIT_REPOSITORY https://github.com/llvm-mirror/clang.git
GIT_TAG 26cac19a0d622afc91cd52a002921074bccc6a27 GIT_TAG 26cac19a0d622afc91cd52a002921074bccc6a27
${NGRAPH_GIT_ARGS}
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
INSTALL_COMMAND "" INSTALL_COMMAND ""
...@@ -43,7 +42,6 @@ ExternalProject_Add( ...@@ -43,7 +42,6 @@ ExternalProject_Add(
PREFIX openmp PREFIX openmp
GIT_REPOSITORY https://github.com/llvm-mirror/openmp.git GIT_REPOSITORY https://github.com/llvm-mirror/openmp.git
GIT_TAG 29b515e1e6d26b5b0d32d47d28dcdb4b8a11470d GIT_TAG 29b515e1e6d26b5b0d32d47d28dcdb4b8a11470d
${NGRAPH_GIT_ARGS}
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
INSTALL_COMMAND "" INSTALL_COMMAND ""
...@@ -66,7 +64,6 @@ ExternalProject_Add( ...@@ -66,7 +64,6 @@ ExternalProject_Add(
DEPENDS ext_clang ext_openmp DEPENDS ext_clang ext_openmp
GIT_REPOSITORY https://github.com/llvm-mirror/llvm.git GIT_REPOSITORY https://github.com/llvm-mirror/llvm.git
GIT_TAG da4a2839d80ac52958be0129b871beedfe90136e GIT_TAG da4a2839d80ac52958be0129b871beedfe90136e
${NGRAPH_GIT_ARGS}
CMAKE_GENERATOR ${CMAKE_GENERATOR} CMAKE_GENERATOR ${CMAKE_GENERATOR}
CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM} CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM}
CMAKE_GENERATOR_TOOLSET ${CMAKE_GENERATOR_TOOLSET} CMAKE_GENERATOR_TOOLSET ${CMAKE_GENERATOR_TOOLSET}
......
...@@ -106,7 +106,6 @@ if (WIN32) ...@@ -106,7 +106,6 @@ if (WIN32)
DEPENDS ext_mkl DEPENDS ext_mkl
GIT_REPOSITORY ${MKLDNN_GIT_REPO_URL} GIT_REPOSITORY ${MKLDNN_GIT_REPO_URL}
GIT_TAG ${MKLDNN_GIT_TAG} GIT_TAG ${MKLDNN_GIT_TAG}
${NGRAPH_GIT_ARGS}
UPDATE_COMMAND "" UPDATE_COMMAND ""
CONFIGURE_COMMAND CONFIGURE_COMMAND
# Patch gets mad if it applied for a second time so: # Patch gets mad if it applied for a second time so:
...@@ -143,7 +142,6 @@ else() ...@@ -143,7 +142,6 @@ else()
DEPENDS ext_mkl DEPENDS ext_mkl
GIT_REPOSITORY ${MKLDNN_GIT_REPO_URL} GIT_REPOSITORY ${MKLDNN_GIT_REPO_URL}
GIT_TAG ${MKLDNN_GIT_TAG} GIT_TAG ${MKLDNN_GIT_TAG}
${NGRAPH_GIT_ARGS}
UPDATE_COMMAND "" UPDATE_COMMAND ""
CONFIGURE_COMMAND CONFIGURE_COMMAND
# Patch gets mad if it applied for a second time so: # Patch gets mad if it applied for a second time so:
......
...@@ -31,7 +31,6 @@ ExternalProject_Add( ...@@ -31,7 +31,6 @@ ExternalProject_Add(
PREFIX MLSL PREFIX MLSL
GIT_REPOSITORY ${MLSL_GIT_URL} GIT_REPOSITORY ${MLSL_GIT_URL}
GIT_TAG ${MLSL_GIT_TAG} GIT_TAG ${MLSL_GIT_TAG}
${NGRAPH_GIT_ARGS}
UPDATE_COMMAND "" UPDATE_COMMAND ""
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND ${MAKE_EXE} -j 1 ENABLE_INTERNAL_ENV_UPDATE=1 BUILD_COMMAND ${MAKE_EXE} -j 1 ENABLE_INTERNAL_ENV_UPDATE=1
......
...@@ -35,7 +35,6 @@ ExternalProject_Add( ...@@ -35,7 +35,6 @@ ExternalProject_Add(
PREFIX onnx PREFIX onnx
GIT_REPOSITORY ${ONNX_GIT_REPO_URL} GIT_REPOSITORY ${ONNX_GIT_REPO_URL}
GIT_TAG ${ONNX_GIT_BRANCH} GIT_TAG ${ONNX_GIT_BRANCH}
${NGRAPH_GIT_ARGS}
INSTALL_COMMAND "" INSTALL_COMMAND ""
UPDATE_COMMAND "" UPDATE_COMMAND ""
CMAKE_GENERATOR ${CMAKE_GENERATOR} CMAKE_GENERATOR ${CMAKE_GENERATOR}
......
...@@ -29,7 +29,6 @@ ExternalProject_Add( ...@@ -29,7 +29,6 @@ ExternalProject_Add(
PREFIX protobuf PREFIX protobuf
GIT_REPOSITORY ${PROTOBUF_GIT_REPO_URL} GIT_REPOSITORY ${PROTOBUF_GIT_REPO_URL}
GIT_TAG ${PROTOBUF_GIT_BRANCH} GIT_TAG ${PROTOBUF_GIT_BRANCH}
${NGRAPH_GIT_ARGS}
UPDATE_COMMAND "" UPDATE_COMMAND ""
PATCH_COMMAND "" PATCH_COMMAND ""
CONFIGURE_COMMAND ./autogen.sh COMMAND ./configure --prefix=${EXTERNAL_PROJECTS_ROOT}/protobuf --disable-shared CXX=${CMAKE_CXX_COMPILER} CXXFLAGS=-fPIC CONFIGURE_COMMAND ./autogen.sh COMMAND ./configure --prefix=${EXTERNAL_PROJECTS_ROOT}/protobuf --disable-shared CXX=${CMAKE_CXX_COMPILER} CXXFLAGS=-fPIC
......
...@@ -25,7 +25,6 @@ ExternalProject_Add( ...@@ -25,7 +25,6 @@ ExternalProject_Add(
PREFIX tbb PREFIX tbb
GIT_REPOSITORY ${TBB_GIT_REPO_URL} GIT_REPOSITORY ${TBB_GIT_REPO_URL}
GIT_TAG ${TBB_GIT_TAG} GIT_TAG ${TBB_GIT_TAG}
${NGRAPH_GIT_ARGS}
SOURCE_DIR "${TBB_ROOT}" SOURCE_DIR "${TBB_ROOT}"
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
...@@ -24,7 +24,6 @@ ExternalProject_Add( ...@@ -24,7 +24,6 @@ ExternalProject_Add(
pybind11 pybind11
GIT_REPOSITORY "https://github.com/pybind/pybind11.git" GIT_REPOSITORY "https://github.com/pybind/pybind11.git"
GIT_TAG "v2.2.4" GIT_TAG "v2.2.4"
${NGRAPH_GIT_ARGS}
SOURCE_DIR "${CMAKE_BINARY_DIR}/pybind11" SOURCE_DIR "${CMAKE_BINARY_DIR}/pybind11"
CONFIGURE_COMMAND "" CONFIGURE_COMMAND ""
BUILD_COMMAND "" BUILD_COMMAND ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment