ceph/cmake/modules
Kefu Chai 571a786afc cmake: pass LDSHARED env var to distutils
otherwise, the default gcc will be used, and the $CMAKE_C_COMPILER
passed to the outer CMakeLists.txt won't kick in. moreover, if the
building script (ceph.spec for instance) could set the $PATH, and
expect that the CMakeLists.txt will use the toolchain executables
in the $PATH to build Ceph, distutils will continue using the default
$CC for linking the python bindings, on UNIX it will be gcc in the
new shell's $PATH, because we are using `install(CODE "... execute_process(
...))` for installing the python bindings. apparently, this is not
expected. because the new shell's $PATH is very likely different
from the one changed by the building script. to address this, we
should always specify the `$LDSHARED` env var explicitly.

also, pass env vars using `ENV{}` instead of the `env` command to
workaround the issue of https://cmake.org/pipermail/cmake/2015-December/062216.html,
because it's not straightforward to set environment variables with
spaces in the them using cmake. and because one cannot use add_custom_target()
in the script mode of cmake. this leave me only limited options to
fix this issue.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-11-15 15:22:07 +08:00
..
AddCephTest.cmake cmake: always use CMAKE_RUNTIME_OUTPUT_DIRECTORY as the unittests' path 2017-10-03 23:44:28 +08:00
BuildBoost.cmake make-dist,cmake: Try multiple URLs to download boost before failing 2017-10-04 11:13:34 +10:00
BuildRocksDB.cmake cmake: should check the availability of aligned_alloc() by running the test 2017-10-31 17:39:09 +08:00
CTags.cmake cmake: do not try to add submodule to exclude list if .git is not around 2017-04-13 13:49:54 +08:00
Distutils.cmake cmake: pass LDSHARED env var to distutils 2017-11-15 15:22:07 +08:00
Findaio.cmake
Findbabeltrace.cmake cmake: align cmake names of library packages 2017-05-04 11:14:43 +02:00
FindBacktrace.cmake
Findblkid.cmake
Findcryptopp.cmake cmake: align cmake names of library packages 2017-05-04 11:14:43 +02:00
FindCython.cmake
Finddpdk.cmake os/bluestore: fix build errors when spdk is on 2017-07-05 01:42:10 -04:00
Findfcgi.cmake
Findfio.cmake
Findfuse.cmake cmake: align cmake names of library packages 2017-05-04 11:14:43 +02:00
Findgperftools.cmake cmake: should use the value of GPERFTOOLS_LIBRARIES as REQUIRED_VARS 2017-10-31 16:58:04 +08:00
FindJeMalloc.cmake cmake: simplify find_package jemalloc 2016-12-13 11:39:35 -05:00
Findkeyutils.cmake cmake: search for Keyutils in default paths and cleanup 2017-01-04 12:47:17 +01:00
Findleveldb.cmake
FindLTTngUST.cmake
FindLZ4.cmake cmake: require lz4 v1.7 for building lz4 compressor 2017-08-17 16:01:55 +08:00
FindNSPR.cmake cmake: search for nspr include files for both suffixes: nspr4 and nspr 2017-01-16 16:35:41 +08:00
FindNSS.cmake
FindOpenLdap.cmake
FindPython3Interp.cmake
FindPython3Libs.cmake
Findrdma.cmake msg/async/rdma: check if exp verbs avail 2017-02-13 13:28:21 +00:00
Findrocksdb.cmake cmake: detect rocksdb's version 2017-09-19 13:46:50 +08:00
Findsnappy.cmake
Findudev.cmake
Findxfs.cmake cmake: compile libzfs backend conditionally 2017-06-27 23:28:03 +08:00
Findxio.cmake
Findzfs.cmake cmake: compile libzfs backend conditionally 2017-06-27 23:28:03 +08:00
GetGitRevisionDescription.cmake
GetGitRevisionDescription.cmake.in
MergeStaticLibraries.cmake embedded: Add a skeleton libcephd library 2016-11-28 23:48:02 -08:00
SIMDExt.cmake Fix ppc64 support for ceph 2017-08-04 10:56:03 +02:00