A correction to the cmake file so if OGL is disabled, it doesn't include the sdl platform GL file, allowing the project to compile.

This commit is contained in:
Areloch 2020-06-07 02:52:06 -05:00
parent 97880e44dd
commit a1baf0e03c

View file

@ -459,7 +459,13 @@ endif()
if(TORQUE_SDL)
addPathRec("${srcDir}/windowManager/sdl")
if(NOT TORQUE_OPENGL)
set(BLACKLIST "sdlPlatformGL.cpp")
endif()
addPathRec("${srcDir}/platformSDL")
set(BLACKLIST "")
if(TORQUE_OPENGL)
addPathRec("${srcDir}/gfx/gl/sdl")