Skip to content

Commit e75ae96

Browse files
committed
[build] include IO dependencies by default
keep old behavior by including leveldb, lmdb, and opencv by default
1 parent 2a585f7 commit e75ae96

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ endif
172172

173173
LIBRARIES += glog gflags protobuf boost_system m hdf5_hl hdf5
174174

175+
# handle IO dependencies
176+
USE_LEVELDB ?= 1
177+
USE_LMDB ?= 1
178+
USE_OPENCV ?= 1
179+
175180
ifeq ($(USE_LEVELDB), 1)
176181
LIBRARIES += leveldb snappy
177182
endif
@@ -299,7 +304,7 @@ ifeq ($(USE_CUDNN), 1)
299304
COMMON_FLAGS += -DUSE_CUDNN
300305
endif
301306

302-
# i/o libraries configuration
307+
# configure IO libraries
303308
ifeq ($(USE_OPENCV), 1)
304309
COMMON_FLAGS += -DUSE_OPENCV
305310
endif

Makefile.config.example

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
# CPU-only switch (uncomment to build without GPU support).
88
# CPU_ONLY := 1
99

10-
# comment out to disable IO dependencies
11-
USE_LEVELDB := 1
12-
USE_LMDB := 1
13-
USE_OPENCV := 1
10+
# uncomment to disable IO dependencies and corresponding data layers
11+
# USE_LEVELDB := 0
12+
# USE_LMDB := 0
13+
# USE_OPENCV := 0
1414

1515
# To customize your choice of compiler, uncomment and set the following.
1616
# N.B. the default for Linux is g++ and the default for OSX is clang++

0 commit comments

Comments
 (0)