If CG isn't available, still compile and fallback on GLSL

This commit is contained in:
Ryan Houdek
2012-10-09 23:43:22 -05:00
committed by Sonicadvance1
parent 7c91476650
commit 189d12b61c
4 changed files with 13 additions and 3 deletions
@@ -23,7 +23,7 @@ if(wxWidgets_FOUND)
set(LIBS ${LIBS} ${wxWidgets_LIBRARIES})
endif(wxWidgets_FOUND)
if(WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
if(HAVE_CG AND (APPLE OR WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
set(LIBS ${LIBS} Cg CgGL)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
list(APPEND LIBS "${CMAKE_SOURCE_DIR}/Externals/Cg/Cg.framework")