Only build oclgl tests if OpenGL is installed on the system
Change-Id: I226f2e09c98a970ce8dce0b6f670ca13d868aeb6
This commit is contained in:
1 والد
1171ec72be
کامیت
876cf62e0e
5 files changed
+79
-37
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user