From 5af103fe008aac0cb20631871bbee16f319835ed Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 12 Jan 2016 20:50:43 +0500 Subject: Cycles: Reduce scope of some defines set in CMakeLists Should be no functional changes at all, just speeds up re-compilation when some features needs to be disabled for development purposes. For example, when running lots of Valgrind it's handy to disable any GPU devices because otherwise you'll be wasting quite some time in the driver while enumerating devices. Reviewers: dingto, lukasstockner97, brecht, juicyfruit Differential Revision: https://developer.blender.org/D1730 --- intern/cycles/device/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'intern/cycles/device/CMakeLists.txt') diff --git a/intern/cycles/device/CMakeLists.txt b/intern/cycles/device/CMakeLists.txt index 220b16bb45b..4d962f5e95f 100644 --- a/intern/cycles/device/CMakeLists.txt +++ b/intern/cycles/device/CMakeLists.txt @@ -46,6 +46,18 @@ set(SRC_HEADERS ) add_definitions(${GL_DEFINITIONS}) +if(WITH_CYCLES_NETWORK) + add_definitions(-DWITH_NETWORK) +endif() +if(WITH_CYCLES_DEVICE_OPENCL) + add_definitions(-DWITH_OPENCL) +endif() +if(WITH_CYCLES_DEVICE_CUDA) + add_definitions(-DWITH_CUDA) +endif() +if(WITH_CYCLES_DEVICE_MULTI) + add_definitions(-DWITH_MULTI) +endif() include_directories(${INC}) include_directories(SYSTEM ${INC_SYS}) -- cgit v1.2.3