diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-12 18:50:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-01-14 11:12:50 +0300 |
commit | 5af103fe008aac0cb20631871bbee16f319835ed (patch) | |
tree | 08ab45df99aa186e4180505b39138812fef697f8 /intern/cycles/device/CMakeLists.txt | |
parent | 16b7887b33b0057830e888de394f4bc08a9d325b (diff) |
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
Diffstat (limited to 'intern/cycles/device/CMakeLists.txt')
-rw-r--r-- | intern/cycles/device/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
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}) |