Disable dynamic extension support by default for CMake (#5419)

Summary:
We have users reporting linking error while building RocksDB using CMake, and we do not enable dynamic extension feature for them. The fix is to add `-DROCKSDB_NO_DYNAMIC_EXTENSION` to CMake by default.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5419

Differential Revision: D15676792

Pulled By: riversand963

fbshipit-source-id: d45aaacfc64ea61646fd7329c352cd760145baf3
main
Yanqin Jin 6 years ago committed by Facebook Github Bot
parent 0153e14569
commit 267b9b1091
  1. 4
      CMakeLists.txt

@ -332,6 +332,10 @@ if(DISABLE_STALL_NOTIF)
add_definitions(-DROCKSDB_DISABLE_STALL_NOTIFICATION) add_definitions(-DROCKSDB_DISABLE_STALL_NOTIFICATION)
endif() endif()
option(WITH_DYNAMIC_EXTENSION "build with dynamic extension support" OFF)
if(NOT WITH_DYNAMIC_EXTENSION)
add_definitions(-DROCKSDB_NO_DYNAMIC_EXTENSION)
endif()
if(DEFINED USE_RTTI) if(DEFINED USE_RTTI)
if(USE_RTTI) if(USE_RTTI)

Loading…
Cancel
Save