Browse files

cmake: only install the shaders if opengl will be built

  • Loading branch information...
1 parent 6c87b34 commit 69b404ac3818cef8148baed080d9a839c4914149 @lynxlynxlynx lynxlynxlynx committed Aug 31, 2014
Showing with 5 additions and 2 deletions.
  1. +4 −1 gemrb/CMakeLists.txt
  2. +1 −1 gemrb/plugins/SDLVideo/CMakeLists.txt
View
5 gemrb/CMakeLists.txt
@@ -1,7 +1,10 @@
ADD_SUBDIRECTORY( core )
# GUIScripts and override go directly in the bundle
-SET(RESOURCE_LIST "GUIScripts" "override" "unhardcoded" "plugins/SDLVideo/Shaders")
+SET(RESOURCE_LIST "GUIScripts" "override" "unhardcoded")
+IF (USE_OPENGL)
+ LIST(APPEND RESOURCE_LIST "plugins/SDLVideo/Shaders")
+ENDIF()
SET(RESOURCE_FILES "")
FOREACH(RESOURCE_DIR_NAME ${RESOURCE_LIST})
View
2 gemrb/plugins/SDLVideo/CMakeLists.txt
@@ -5,7 +5,7 @@ IF(SDL2_FOUND)
IF(USE_OPENGL)
ADD_GEMRB_PLUGIN( SDLVideo ${COMMON_FILES} SDL20Video.cpp SDL20GLVideo.cpp GLSLProgram.cpp Matrix.cpp GLTextureSprite2D.cpp GLPaletteManager.cpp)
TARGET_LINK_LIBRARIES( SDLVideo ${SDL_LIBRARY} ${OPENGL_LIBRARY} ${GLEW_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${COCOA_LIBRARY_PATH})
- INSTALL(DIRECTORY Shaders DESTINATION ${DATA_DIR})
+ # Shaders are installed in gemrb/CMakeLists.txt for better mac compatibility
# also copy to the build dir for no-install runs
FILE(COPY Shaders DESTINATION ${CMAKE_BINARY_DIR})
ELSE()

0 comments on commit 69b404a

Please sign in to comment.