diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-04-25 00:41:26 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-04-25 00:41:26 +0300 |
commit | 9c87bb124a57e84abe60a75ba68002a6cc2a68ac (patch) | |
tree | 622800cfc72df6ac69127c8510af165bf7420968 /CMakeLists.txt | |
parent | 0f143627d2c80e905383bd45f6725644c483fbb3 (diff) |
group WITH_LEGACY_OPENGL with the other GL options
Blender subsystems that care about OpenGL use GL_DEFINITIONS, which now includes the newest (temporary) WITH_LEGACY_OPENGL.
Also updated Gawain's CMake to use this instead of its own logic.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e1c1a5eccbb..0b701cabedd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1074,6 +1074,10 @@ if(WITH_GL_EGL) endif() +if(WITH_LEGACY_OPENGL) + list(APPEND GL_DEFINITIONS -DWITH_LEGACY_OPENGL) +endif() + if(WITH_GL_PROFILE_COMPAT) list(APPEND GL_DEFINITIONS -DWITH_GL_PROFILE_COMPAT) endif() |