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/subd | |
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/subd')
-rw-r--r-- | intern/cycles/subd/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/subd/CMakeLists.txt b/intern/cycles/subd/CMakeLists.txt index 2641f6d9c0c..1ccf80d9457 100644 --- a/intern/cycles/subd/CMakeLists.txt +++ b/intern/cycles/subd/CMakeLists.txt @@ -25,6 +25,10 @@ set(SRC_HEADERS subd_split.h ) +if(WITH_CYCLES_OPENSUBDIV) + add_definitions(-DWITH_OPENSUBDIV) +endif() + include_directories(${INC}) include_directories(SYSTEM ${INC_SYS}) |