Skip to content

Commit baad5e5

Browse files
committed
SConstruct : Silence OpenGL deprecations on MacOS
One such example being : ``` src/IECoreGL/Debug.cpp:59:30: error: 'gluErrorString' is deprecated: first deprecated in macOS 10.9 - OpenGL API deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings) [-Werror,-Wdeprecated-declarations] ``` We really need to modernise our use of OpenGL, but that's a much bigger endeavour.
1 parent 2e3e4ea commit baad5e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SConstruct

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2211,7 +2211,8 @@ if env["WITH_GL"] and doConfigure :
22112211
glEnv.Append(
22122212
FRAMEWORKS = [
22132213
"OpenGL",
2214-
]
2214+
],
2215+
CPPDEFINES = [ "GL_SILENCE_DEPRECATION" ],
22152216
)
22162217
elif env["PLATFORM"] == "win32" :
22172218
glEnv.Append(

0 commit comments

Comments
 (0)