cmake: WITH_SPDK=ON by default

Signed-off-by: wanjun.lp <wanjun.lp@alibaba-inc.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2017-11-15 20:57:25 +08:00
parent 22d8dde1d5
commit df446f06cb
2 changed files with 6 additions and 1 deletions

View File

@ -215,7 +215,11 @@ if(WITH_ZFS)
set(HAVE_LIBZFS ${ZFS_FOUND})
endif()
option(WITH_SPDK "Enable SPDK" OFF)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i686|amd64|x86_64|AMD64")
option(WITH_SPDK "Enable SPDK" ON)
else()
option(WITH_SPDK "Enable SPDK" OFF)
endif()
if(WITH_SPDK)
include(BuildSPDK)
build_spdk()

View File

@ -33,6 +33,7 @@ rm -rf build && ./do_cmake.sh "$*" \
-D WITH_CEPHFS=OFF \
-D WITH_EMBEDDED=OFF \
-D WITH_MGR=YES \
-D WITH_SPDK=OFF \
2>&1 | tee cmake.log
echo start building