Under OS X, link GL plugin against Cg framework instead of Cg library.
This commit is contained in:
parent
20fa8bb9f2
commit
8c3775ee6f
|
@ -22,8 +22,10 @@ if(wxWidgets_FOUND)
|
||||||
set(LIBS ${LIBS} ${wxWidgets_LIBRARIES})
|
set(LIBS ${LIBS} ${wxWidgets_LIBRARIES})
|
||||||
endif(wxWidgets_FOUND)
|
endif(wxWidgets_FOUND)
|
||||||
|
|
||||||
if(APPLE OR WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
if(WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
set(LIBS ${LIBS} Cg CgGL)
|
set(LIBS ${LIBS} Cg CgGL)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
list(APPEND LIBS "${CMAKE_SOURCE_DIR}/Externals/Cg/Cg.framework")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
|
|
Loading…
Reference in New Issue