Browse Source

Fixed use ${LIBS_PRIVATE} for FreeBSD

pull/407/head
Martinfx 7 years ago
parent
commit
69a1c19735
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      src/CMakeLists.txt

+ 2
- 8
src/CMakeLists.txt View File

@ -24,14 +24,8 @@ set_property(CACHE PLATFORM PROPERTY STRINGS "Desktop" "Web" "Android" "Raspberr
# OpenGL version # OpenGL version
set(OPENGL_VERSION "3.3" CACHE STRING "OpenGL Version to build raylib with") set(OPENGL_VERSION "3.3" CACHE STRING "OpenGL Version to build raylib with")
set_property(CACHE OPENGL_VERSION PROPERTY STRINGS "3.3" "2.1" "1.1" "ES 2.0") set_property(CACHE OPENGL_VERSION PROPERTY STRINGS "3.3" "2.1" "1.1" "ES 2.0")
### Config options ###
if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
find_package(OpenGL REQUIRED)
find_package(OpenAL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR} ${OPENAL_INCLUDE_DIR})
endif()
### Config options ###
include_directories(external/glfw/include) include_directories(external/glfw/include)
include_directories(external/include) # For use with AppVeyor on Windows include_directories(external/include) # For use with AppVeyor on Windows
@ -110,7 +104,7 @@ if(${PLATFORM} MATCHES "PLATFORM_DESKTOP")
endif() endif()
if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD) if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
foreach(L s">OpenGL OpenAL)
foreach(L o">${LIBS_PRIVATE})
set(PKG_CONFIG_LIBS_PRIVATE "${PKG_CONFIG_LIBS_PRIVATE} -l${L}") set(PKG_CONFIG_LIBS_PRIVATE "${PKG_CONFIG_LIBS_PRIVATE} -l${L}")
endforeach(L) endforeach(L)
endif() endif()

Loading…
Cancel
Save