Summary:
When building RocksDB with getdeps on Windows, `thirdparty.inc` get in the way since `FindXXXX.cmake` are working properly now.
This PR adds an option to skip that file when building RocksDB so we can disable it.
FB: see [
D36905191](https://www.internalfb.com/diff/
D36905191).
Pull Request resolved: https://github.com/facebook/rocksdb/pull/10110
Reviewed By: siying
Differential Revision:
D36913882
Pulled By: fanzeyi
fbshipit-source-id:
33d36841dc0d4fe87f51e1d9fd2b158a3adab88f
if(MSVC)
option(WITH_GFLAGS "build with GFlags" OFF)
option(WITH_XPRESS "build with windows built in compression" OFF)
- include(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty.inc)
+ option(ROCKSDB_SKIP_THIRDPARTY "skip thirdparty.inc" OFF)
+
+ if(NOT ROCKSDB_SKIP_THIRDPARTY)
+ include(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty.inc)
+ endif()
else()
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND NOT CMAKE_SYSTEM_NAME MATCHES "kFreeBSD")
# FreeBSD has jemalloc as default malloc