mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
cpm-ogg.cmake: fix libvorbis cross-build
Vorbis couldn't find ogg so tell it explicitly where it is.
This commit is contained in:
parent
61198a46e7
commit
8ee785bb7e
1 changed files with 7 additions and 0 deletions
7
thirdparty/cpm-ogg.cmake
vendored
7
thirdparty/cpm-ogg.cmake
vendored
|
|
@ -4,3 +4,10 @@ CPMAddPackage(
|
|||
URL "https://github.com/xiph/ogg/releases/download/v1.3.5/libogg-1.3.5.zip"
|
||||
EXCLUDE_FROM_ALL ON
|
||||
)
|
||||
|
||||
if(ogg_ADDED)
|
||||
# Fixes bug with find_package not being able to find
|
||||
# ogg when cross-building.
|
||||
set(OGG_INCLUDE_DIR "${ogg_SOURCE_DIR}/include")
|
||||
set(OGG_LIBRARY Ogg:ogg)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue