Skip to content

Commit

Permalink
cmake: WITH_SPDK=ON by default
Browse files Browse the repository at this point in the history
Signed-off-by: wanjun.lp <[email protected]>
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Nov 17, 2017
1 parent 22d8dde commit df446f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions do_freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df446f0

Please sign in to comment.