Fix builds
This commit is contained in:
parent
231f761569
commit
17460be026
2
.github/workflows/windows-clang.yml
vendored
2
.github/workflows/windows-clang.yml
vendored
@ -30,8 +30,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git clone https://github.com/microsoft/vcpkg.git
|
git clone https://github.com/microsoft/vcpkg.git
|
||||||
${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat
|
${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat
|
||||||
${{ github.workspace }}/vcpkg integrate install
|
|
||||||
|
|
||||||
- name: Configure and build project with CMake and vcpkg
|
- name: Configure and build project with CMake and vcpkg
|
||||||
env:
|
env:
|
||||||
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
|
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
|
||||||
|
|||||||
@ -10,7 +10,12 @@ add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
|
|||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
find_package(GLEW REQUIRED)
|
find_package(GLEW REQUIRED)
|
||||||
find_package(OpenAL CONFIG REQUIRED)
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
|
# specific for vcpkg
|
||||||
|
find_package(OpenAL CONFIG REQUIRED)
|
||||||
|
else()
|
||||||
|
find_package(OpenAL REQUIRED)
|
||||||
|
endif()
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
find_package(PNG REQUIRED)
|
find_package(PNG REQUIRED)
|
||||||
find_package(CURL REQUIRED)
|
find_package(CURL REQUIRED)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user