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

This commit is contained in:
Ryan Houdek
2011-12-24 00:24:13 -06:00
parent 7c558df283
commit 9bc6b83fd0
4 changed files with 13 additions and 3 deletions

View File

@ -23,7 +23,7 @@ if(wxWidgets_FOUND)
set(LIBS ${LIBS} ${wxWidgets_LIBRARIES})
endif(wxWidgets_FOUND)
if(APPLE OR 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)
endif()