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/subd/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern/cycles/subd') 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}) -- cgit v1.2.3