device_network.cpp is completely elided when WITH_NETWORK is not defined, so do not include it in the build in that case
This commit is contained in:
@@ -18,11 +18,14 @@ set(SRC
|
||||
device_cpu.cpp
|
||||
device_cuda.cpp
|
||||
device_multi.cpp
|
||||
device_network.cpp
|
||||
device_opencl.cpp
|
||||
device_task.cpp
|
||||
)
|
||||
|
||||
if(WITH_NETWORK)
|
||||
list(APPEND SRC device_network.cpp)
|
||||
endif()
|
||||
|
||||
set(SRC_HEADERS
|
||||
device.h
|
||||
device_memory.h
|
||||
|
Reference in New Issue
Block a user