More closely matching Windows and easier to update. Pull Request: https://projects.blender.org/blender/blender/pulls/123196
21 lines
454 B
CMake
21 lines
454 B
CMake
# SPDX-FileCopyrightText: 2002-2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
ExternalProject_Add(external_ogg
|
|
URL file://${PACKAGE_DIR}/${OGG_FILE}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
URL_HASH ${OGG_HASH_TYPE}=${OGG_HASH}
|
|
PREFIX ${BUILD_DIR}/ogg
|
|
|
|
CMAKE_ARGS
|
|
-DCMAKE_INSTALL_PREFIX=${LIBDIR}/ogg
|
|
${DEFAULT_CMAKE_FLAGS}
|
|
|
|
INSTALL_DIR ${LIBDIR}/ogg
|
|
)
|
|
|
|
if(NOT WIN32)
|
|
harvest(external_ogg ogg/lib ffmpeg/lib "*.a")
|
|
endif()
|