diff options
author | Kefu Chai <kchai@redhat.com> | 2016-07-08 08:57:41 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2016-07-08 09:02:59 +0200 |
commit | edd7c9d709a256d329eaaa367efe7f80fc34077c (patch) | |
tree | 7ec55062edbdca15c04efa0e636f233ca10080d8 /cmake/modules/Distutils.cmake | |
parent | Merge pull request #10186 from ceph/wip-cmake-no-with-mds (diff) | |
download | ceph-edd7c9d709a256d329eaaa367efe7f80fc34077c.tar.xz ceph-edd7c9d709a256d329eaaa367efe7f80fc34077c.zip |
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 <kchai@redhat.com>
Diffstat (limited to 'cmake/modules/Distutils.cmake')
-rw-r--r-- | cmake/modules/Distutils.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/modules/Distutils.cmake b/cmake/modules/Distutils.cmake index b4a90732b0d..6ba1c378b92 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) |