Only build oclgl tests if OpenGL is installed on the system

Change-Id: I226f2e09c98a970ce8dce0b6f670ca13d868aeb6
Tá an tiomantas seo le fáil i:
Vlad Sytchenko tiomanta 2020-06-02 13:31:29 -04:00
1 tuismitheoir 1171ec72be
tiomantas 876cf62e0e
5 comhad athraithe
+79 -37

Níor tháinig aon chomhaid le do chuardach

+8 -3
Féach ar an gComhad
@@ -61,9 +61,14 @@ target_include_directories(oclruntime
target_link_libraries(oclruntime
PRIVATE
OpenCL
${GLEW_LIBRARIES}
${OPENGL_LIBRARIES})
OpenCL)
if(OPENGL_FOUND AND GLEW_FOUND)
target_link_libraries(oclruntime
PRIVATE
${GLEW_LIBRARIES}
${OPENGL_LIBRARIES})
endif()
add_custom_command(
TARGET oclruntime POST_BUILD