diff options
Diffstat (limited to 'intern/gawain/CMakeLists.txt')
-rw-r--r-- | intern/gawain/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/gawain/CMakeLists.txt b/intern/gawain/CMakeLists.txt index 177c76327aa..ced52b22e2c 100644 --- a/intern/gawain/CMakeLists.txt +++ b/intern/gawain/CMakeLists.txt @@ -1,3 +1,10 @@ +# WITH_OPENGL limits the visibility of the opengl headers to just gawain and bg_gpu, +# to more easily highlight codepadths in other libraries that need to be refactored, +# bf_intern_gawain is allowed to have opengl regardless of this option. + +if(NOT WITH_OPENGL) + add_definitions(-DWITH_OPENGL) +endif() set(INC gawain |