소스 검색

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.

Areloch 5 년 전
부모
커밋
a1baf0e03c
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      Tools/CMake/torque3d.cmake

+ 6 - 0
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")