diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 345d2fa65af479e0f212ed5bd7e2cdd82bb5e0fd..0e17c42d34f147db190ac5e5ccd5339360cc35bb 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -15,7 +15,7 @@ set(PY_FILES paddle/__init__.py configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.in ${CMAKE_CURRENT_BINARY_DIR}/setup.py) - add_custom_command(OUTPUT ${OUTPUT_DIR}/.timestamp +add_custom_command(OUTPUT ${OUTPUT_DIR}/.timestamp COMMAND env ${py_env} ${PYTHON_EXECUTABLE} setup.py bdist_wheel COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT_DIR}/.timestamp DEPENDS gen_proto_py ${PY_FILES} ${external_project_dependencies} paddle_master_shared)