]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: [win32] Fix rocksdb cross compiling
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 5 Feb 2020 15:01:04 +0000 (15:01 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 19 Feb 2020 08:24:21 +0000 (08:24 +0000)
commitdbdc91db6cc377bdd90a47731cb5d5c9d5adc771
tree4ae9a078f6feca5cf35b9fc1f80a7885aeaf9f1a
parentd15481f1a50d29b1afd6de7a2e55965a3d1f3c44
cmake: [win32] Fix rocksdb cross compiling

In order to be able to cross compile rocksdb using mingw, we'll
have to do the following:
* pass on specified toolchain files
* pass the CMAKE_PREFIX_PATH. We'll have to replace the ";" separator
  with something else (we went with "!"), otherwise CMake won't be
  able to properly handle the command arguments
* pass on the received LZ4 lib location since it cannot be properly
  detected when cross compiling.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
cmake/modules/BuildRocksDB.cmake