From edd7c9d709a256d329eaaa367efe7f80fc34077c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 8 Jul 2016 14:57:41 +0800 Subject: [PATCH] cmake: creage egg_info files into build directory otherwise they will go to the source tree, and "git ls-files" will list them as untracked files, which annoy gitbuilder-ceph-tarball*-cmake gitbuilders. like + echo 'error: Added files:' error: Added files: + cat .git/added-files src/pybind/rados/rados.egg-info/PKG-INFO ... Signed-off-by: Kefu Chai --- cmake/modules/Distutils.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/modules/Distutils.cmake b/cmake/modules/Distutils.cmake index b4a90732b0d8..6ba1c378b920 100644 --- a/cmake/modules/Distutils.cmake +++ b/cmake/modules/Distutils.cmake @@ -66,11 +66,13 @@ function(distutils_install_cython_module name) COMMAND env CYTHON_BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR} CEPH_LIBDIR=${CMAKE_LIBRARY_OUTPUT_DIRECTORY} + CC=${CMAKE_C_COMPILER} CFLAGS=\"-iquote ${CMAKE_SOURCE_DIR}/src/include\" ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/setup.py build --build-base ${CYTHON_MODULE_DIR} --verbose - install \${options} --verbose - --single-version-externally-managed --record /dev/null + install \${options} --single-version-externally-managed --record /dev/null + egg_info --egg-base ${CMAKE_CURRENT_BINARY_DIR} + --verbose WORKING_DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\" RESULT_VARIABLE install_res) if(NOT \"\${install_res}\" STREQUAL 0) -- 2.47.3