Skip to content

Commit 7453312

Browse files
committed
fix error python path when building framework_py_proto
1 parent bb36084 commit 7453312

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/fluid/framework/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ py_proto_compile(framework_py_proto SRCS framework.proto)
6868
add_custom_target(framework_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E touch __init__.py)
6969
add_dependencies(framework_py_proto framework_py_proto_init)
7070
add_custom_command(TARGET framework_py_proto POST_BUILD
71-
COMMAND ${CMAKE_COMMAND} -E make_directory ${PADDLE_SOURCE_DIR}/python/paddle/v2/fluid/proto
72-
COMMAND cp *.py ${PADDLE_SOURCE_DIR}/python/paddle/v2/fluid/proto/
73-
COMMENT "Copy generated python proto into directory paddle/v2/fluid/proto."
71+
COMMAND ${CMAKE_COMMAND} -E make_directory ${PADDLE_SOURCE_DIR}/python/paddle/fluid/proto
72+
COMMAND cp *.py ${PADDLE_SOURCE_DIR}/python/paddle/fluid/proto/
73+
COMMENT "Copy generated python proto into directory paddle/fluid/proto."
7474
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
7575

7676
cc_library(backward SRCS backward.cc DEPS net_op)

0 commit comments

Comments
 (0)