ceph/cmake/modules
Lucian Petrut d15481f1a5 cmake: [win32] Update cmake files
We'll update the cmake files in order to be able to build ceph
components for Windows targets.

Cross compiling using MINGW is the easiest approach for now.
Subsequently, we'll add support for Clang and MSVC.

This patch provides the following changes:
* include winsock2.h, which provides ntohl on Windows
* avoid unsupported compiler flags when using msvc
* add a custom toolchain file for mingw
* update install command for ceph-common in order to work with mingw
* avoid running test sample when cross compiling
* link against the ws_32 lib
* set argeted Windows version
* skip yasm checks when targeting Windows
* allow multiple redefinitions when using mingw, picking the first one.
  this is a workaround for a mingw TLS bug:
  https://sourceforge.net/p/mingw-w64/bugs/816/

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
2020-02-19 08:24:21 +00:00
..
FindPython cmake: CMAKE_ROLE defaults to "PROJECT" 2019-12-19 10:58:58 +08:00
AddCephTest.cmake cmake: drop Find{Python,Python2}.cmake 2019-12-19 11:52:56 +08:00
BuildBoost.cmake CMake - Workaround set Boost_component_FOUND 2020-01-08 11:31:04 -05:00
Buildc-ares.cmake cmake: build c-ares if it's not found or not new enough 2018-07-25 13:13:45 +08:00
BuildDPDK.cmake Merge pull request #31841 from rosinL/wip-support-dpdk-numa 2019-12-02 16:45:11 +08:00
BuildFIO.cmake test/fio: bump to fio 3.15 2019-11-12 02:24:45 +03:00
Buildpmem.cmake cmake: Update pmdk version to 1.7 2020-02-14 01:50:07 +08:00
BuildQatDrv.cmake crypto: QAT Wrapper for Ceph Encryption 2018-10-18 21:48:18 -07:00
BuildRocksDB.cmake cmake: support parallel build for rocksdb 2019-11-25 13:14:22 +05:30
BuildSPDK.cmake cmake/modules: look for GNU make first instead of BSD make 2019-11-25 13:16:04 +05:30
CephCheck_link.c cmake: detect linker support 2019-10-08 21:53:03 +08:00
CephCheck_link.map cmake: detect linker support 2019-10-08 21:53:03 +08:00
CephChecks.cmake cmake: [win32] Update cmake files 2020-02-19 08:24:21 +00:00
CheckCxxAtomic.cmake cmake: Improve test for 16-byte atomic support on IBM Z 2020-01-23 13:13:58 +01:00
CheckYasm.cmake cmake: extract Yasm check into a module 2018-07-28 16:53:10 +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 src,qa: install python bindings into lib/cython_modules/lib.3 2019-12-19 11:52:54 +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
FindBoost.cmake cmake: update FindBoost.cmake for 1.72 2019-12-22 23:56:52 +08:00
Findc-ares.cmake cmake: require 4.0.0 <= libfmt-dev < 5.0.0 2018-08-02 22:14:03 +08:00
FindCppCheck.cmake cmake: silence messages when cppcheck/IWYU is not found 2019-12-10 11:08:02 +08:00
FindCUnit.cmake cmake: build spdk/dpdk in cmake modules 2017-11-17 15:37:53 +08:00
FindCython.cmake cmake: drop WITH_PYTHON2 option 2019-12-19 10:58:58 +08:00
Finddpdk.cmake crimson: link required dpdk components for seastar 2019-11-13 15:53:31 +08:00
Findfcgi.cmake cmake: remove stale comments 2018-06-28 13:21:02 +08:00
Findfio.cmake test/fio: enable objectstore FIO plugin building without the need to install and build FIO source code 2018-03-05 20:35:08 +03:00
Findfmt.cmake cmake: fix version matching for Findfmt 2018-09-10 10:22:24 -04:00
Findfuse.cmake cmake: align cmake names of library packages 2017-05-04 11:14:43 +02:00
FindGMock.cmake cmake: link against gtest in a better way 2018-08-17 15:21:27 +08:00
Findgperftools.cmake cmake: import allocator libraries in a better way 2018-07-26 15:16:48 +08:00
FindGSSApi.cmake auth: Kerberos authentication 2018-12-03 18:55:46 -07:00
FindIWYU.cmake cmake: silence messages when cppcheck/IWYU is not found 2019-12-10 11:08:02 +08:00
FindJeMalloc.cmake cmake: fix a cmake error when with -DALLOCATOR=jemalloc. 2018-08-02 16:38:53 +08:00
Findkeyutils.cmake cmake: extract mount.ceph into src/mount 2018-07-28 16:53:10 +08:00
Findleveldb.cmake cmake: cleanup Findleveldb.cmake 2016-08-11 14:53:02 +08:00
FindLTTngUST.cmake cmake: replace Findlttng-ust.cmake with FindLTTngUST.cmake 2016-08-30 15:51:51 +08:00
FindLZ4.cmake cmake: add LZ4::LZ4 target for LZ4 2018-08-06 17:38:07 +08:00
Findnl.cmake cmake: rewrite Findgenl to support components argument 2019-06-19 21:21:00 +08:00
FindNUMA.cmake cmake: Add dpdk numa support 2019-11-28 20:15:39 +08:00
FindOATH.cmake cmake: cmake: oath lives in liboath 2018-06-10 16:21:41 +02:00
FindOpenLdap.cmake
Findpmem.cmake cmake: Add the support to use system PMDK library 2019-07-10 11:43:27 -04:00
FindPython3.cmake cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
Findqatzip.cmake compressor: add QAT support 2018-04-18 12:05:44 +08:00
FindRabbitMQ.cmake cmake: find_package(RabbitMQ) instead of just checking its header 2019-02-21 19:00:24 +08:00
FindRDKafka.cmake cmake: check version of librdkafka 2019-12-15 22:16:08 +08:00
Findrdmacm.cmake cmake: extract the RDMA libraries interface properties out 2018-06-28 23:26:28 +08:00
FindRocksDB.cmake cmake/FindRocksDB: fix IMPORTED_LOCATION for ROCKSDB_LIBRARIES 2019-03-27 10:18:26 +08:00
FindSanitizers.cmake cmake: fix libtsan detection 2019-09-30 14:49:12 -04:00
Findsnappy.cmake cmake: cleanup snappy related script 2018-08-06 17:16:46 +08:00
FindStdFilesystem_test.cc cmake: Make the tests for finding Filesystem with more serious functions 2019-02-14 13:18:50 +01:00
FindStdFilesystem.cmake cmake: require CMake v3.10.2 2019-08-02 22:09:12 +08:00
Findudev.cmake
Finduuid.cmake cmake,rpm,deb: update to accommodate SPDK v17.10 2017-11-29 18:03:23 +08:00
Findverbs.cmake cmake: extract the RDMA libraries interface properties out 2018-06-28 23:26:28 +08:00
Findxfs.cmake cmake: compile libzfs backend conditionally 2017-06-27 23:28:03 +08:00
Findzfs.cmake cmake: compile libzfs backend conditionally 2017-06-27 23:28:03 +08:00
GetGitRevisionDescription.cmake cmake/modules/GetGitRevisionDescription: update to work with git-worktree 2019-10-07 14:26:07 -05:00
GetGitRevisionDescription.cmake.in cmake/modules/GetGitRevisionDescription: update to work with git-worktree 2019-10-07 14:26:07 -05:00
patch-dpdk-conf.sh cmake: Add dpdk numa support 2019-11-28 20:15:39 +08:00
SIMDExt.cmake Merge pull request #24168 from tchaikov/wip-17516 2018-10-04 16:10:18 -07:00