Ver a proveniência

Fixed compile on OpenBSD (#3085)

pull/3090/head
RayIT há 1 ano
committed by GitHub
ascendente
cometimento
4a371a5197
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 12 adições e 0 eliminações
  1. +12
    -0
      cmake/LibraryConfigurations.cmake

+ 12
- 0
cmake/LibraryConfigurations.cmake Ver ficheiro

@ -25,6 +25,18 @@ if (${PLATFORM} MATCHES "Desktop")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
find_package(OpenGL QUIET)
set(LIBS_PRIVATE ${OPENGL_LIBRARIES} winmm)
elseif (UNIX)
find_library(pthread NAMES pthread)
find_package(OpenGL QUIET)
if ("${OPENGL_LIBRARIES}" STREQUAL "")
set(OPENGL_LIBRARIES "GL")
endif ()
if ("${CMAKE_SYSTEM_NAME}" MATCHES "(Net|Open)BSD")
find_library(OSS_LIBRARY ossaudio)
endif ()
set(LIBS_PRIVATE m pthread ${OPENGL_LIBRARIES} ${OSS_LIBRARY})
else ()
find_library(pthread NAMES pthread)
find_package(OpenGL QUIET)

Carregando…
Cancelar
Guardar