ソースを参照

Fixed use ${LIBS_PRIVATE} for FreeBSD

pull/407/head
Martinfx 7年前
コミット
69a1c19735
1個のファイルの変更2行の追加8行の削除
  1. +2
    -8
      src/CMakeLists.txt

+ 2
- 8
src/CMakeLists.txt ファイルの表示

@ -24,14 +24,8 @@ set_property(CACHE PLATFORM PROPERTY STRINGS "Desktop" "Web" "Android" "Raspberr
# OpenGL version
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")
### 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/include) # For use with AppVeyor on Windows
@ -110,7 +104,7 @@ if(${PLATFORM} MATCHES "PLATFORM_DESKTOP")
endif()
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}")
endforeach(L)
endif()

読み込み中…
キャンセル
保存