Add find opengl for widnows too. (#1985)
* Add find opengl for widnows too. * Also fix set LIBS_PRIVATE to bi similar to linux and apple targets
This commit is contained in:
parent
72983d4e20
commit
024adc2538
@ -14,7 +14,8 @@ if (${PLATFORM} MATCHES "Desktop")
|
||||
endif ()
|
||||
elseif (WIN32)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
set(LIBS_PRIVATE ${LIBS_PRIVATE} winmm)
|
||||
find_package(OpenGL QUIET)
|
||||
set(LIBS_PRIVATE ${OPENGL_LIBRARIES} winmm)
|
||||
else ()
|
||||
find_library(pthread NAMES pthread)
|
||||
find_package(OpenGL QUIET)
|
||||
|
Loading…
Reference in New Issue
Block a user