diff --git a/cmake/external/jemalloc.cmake b/cmake/external/jemalloc.cmake index efce686b20929a5201fccd31c64327d97e81e74b..8a2dc0e60a2ef78f131a3a4796c0ab110d85a114 100644 --- a/cmake/external/jemalloc.cmake +++ b/cmake/external/jemalloc.cmake @@ -21,9 +21,9 @@ ExternalProject_Add( URL ${JEMALLOC_URL} INSTALL_DIR ${JEMALLOC_INSTALL} DOWNLOAD_DIR "${JEMALLOC_DOWNLOAD_DIR}" - BUILD_COMMAND $(MAKE) + BUILD_COMMAND make BUILD_IN_SOURCE 1 - INSTALL_COMMAND $(MAKE) install + INSTALL_COMMAND make install CONFIGURE_COMMAND "${JEMALLOC_DOWNLOAD_DIR}/configure" --prefix=${JEMALLOC_INSTALL} --disable-initial-exec-tls) diff --git a/cmake/external/rocksdb.cmake b/cmake/external/rocksdb.cmake index 8ad2bf1e2e8f16ad573192f8a30257943db23cdb..f2bca6fea63243eba802543368295a60b3f71526 100644 --- a/cmake/external/rocksdb.cmake +++ b/cmake/external/rocksdb.cmake @@ -75,6 +75,7 @@ ExternalProject_Add( add_library(rocksdb STATIC IMPORTED GLOBAL) add_dependencies(extern_rocksdb snappy) +add_dependencies(extern_rocksdb extern_jemalloc) set_property(TARGET rocksdb PROPERTY IMPORTED_LOCATION ${ROCKSDB_LIBRARIES}) add_dependencies(rocksdb extern_rocksdb)