Skip to content

Commit b1d2605

Browse files
baojun-nervanatensor-tang
authored andcommitted
fix compile issue test=develop (#16447)
1 parent 2d8b7b3 commit b1d2605

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

cmake/external/ngraph.cmake

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,25 @@ SET(NGRAPH_TBB_LIB ${NGRAPH_LIB_DIR}/${NGRAPH_TBB_LIB_NAME})
5757
ExternalProject_Add(
5858
${NGRAPH_PROJECT}
5959
${EXTERNAL_PROJECT_LOG_ARGS}
60-
DEPENDS ${MKLDNN_PROJECT} ${MKLML_PROJECT}
61-
GIT_REPOSITORY ${NGRAPH_GIT_REPO}
62-
GIT_TAG ${NGRAPH_GIT_TAG}
63-
PREFIX ${NGRAPH_SOURCES_DIR}
64-
UPDATE_COMMAND ""
65-
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${NGRAPH_INSTALL_DIR}
66-
CMAKE_ARGS -DNGRAPH_UNIT_TEST_ENABLE=FALSE
67-
CMAKE_ARGS -DNGRAPH_TOOLS_ENABLE=FALSE
68-
CMAKE_ARGS -DNGRAPH_INTERPRETER_ENABLE=FALSE
69-
CMAKE_ARGS -DNGRAPH_DEX_ONLY=TRUE
70-
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
71-
CMAKE_ARGS -DMKLDNN_INCLUDE_DIR=${MKLDNN_INC_DIR}
72-
CMAKE_ARGS -DMKLDNN_LIB_DIR=${MKLDNN_INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}
73-
CMAKE_ARGS -DMKLML_LIB_DIR=${MKLML_INSTALL_DIR}/lib
60+
DEPENDS ${MKLDNN_PROJECT} ${MKLML_PROJECT}
61+
GIT_REPOSITORY ${NGRAPH_GIT_REPO}
62+
GIT_TAG ${NGRAPH_GIT_TAG}
63+
PREFIX ${NGRAPH_SOURCES_DIR}
64+
UPDATE_COMMAND ""
65+
CMAKE_GENERATOR ${CMAKE_GENERATOR}
66+
CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM}
67+
CMAKE_GENERATOR_TOOLSET ${CMAKE_GENERATOR_TOOLSET}
68+
CMAKE_ARGS -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
69+
CMAKE_ARGS -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
70+
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${NGRAPH_INSTALL_DIR}
71+
CMAKE_ARGS -DNGRAPH_UNIT_TEST_ENABLE=FALSE
72+
CMAKE_ARGS -DNGRAPH_TOOLS_ENABLE=FALSE
73+
CMAKE_ARGS -DNGRAPH_INTERPRETER_ENABLE=FALSE
74+
CMAKE_ARGS -DNGRAPH_DEX_ONLY=TRUE
75+
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
76+
CMAKE_ARGS -DMKLDNN_INCLUDE_DIR=${MKLDNN_INC_DIR}
77+
CMAKE_ARGS -DMKLDNN_LIB_DIR=${MKLDNN_INSTALL_DIR}/${CMAKE_INSTALL_LIBDIR}
78+
CMAKE_ARGS -DMKLML_LIB_DIR=${MKLML_INSTALL_DIR}/lib
7479
)
7580

7681
add_dependencies(ngraph ${NGRAPH_PROJECT})

0 commit comments

Comments
 (0)