Browse Source

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
pull/1991/head
Hristo Stamenov 3 years ago
committed by GitHub
parent
commit
024adc2538
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cmake/LibraryConfigurations.cmake

+ 2
- 1
cmake/LibraryConfigurations.cmake View File

@ -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…
Cancel
Save