From a1baf0e03c5af9e69aec2b014298a1f4a2700e24 Mon Sep 17 00:00:00 2001 From: Areloch Date: Sun, 7 Jun 2020 02:52:06 -0500 Subject: [PATCH] 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. --- Tools/CMake/torque3d.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/CMake/torque3d.cmake b/Tools/CMake/torque3d.cmake index 6337f35e9..e954524ba 100644 --- a/Tools/CMake/torque3d.cmake +++ b/Tools/CMake/torque3d.cmake @@ -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")