7a395e2e7f
The last good commit wasf57e4c5b98. After this one more fix was committed, this one is preserved as well:67bd678887.
19 lines
527 B
CMake
19 lines
527 B
CMake
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
set(DEFLATE_EXTRA_ARGS
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
)
|
|
|
|
ExternalProject_Add(external_deflate
|
|
URL file://${PACKAGE_DIR}/${DEFLATE_FILE}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
URL_HASH ${DEFLATE_HASH_TYPE}=${DEFLATE_HASH}
|
|
PREFIX ${BUILD_DIR}/deflate
|
|
CMAKE_GENERATOR ${PLATFORM_ALT_GENERATOR}
|
|
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/deflate ${DEFAULT_CMAKE_FLAGS} ${DEFLATE_EXTRA_ARGS}
|
|
INSTALL_DIR ${LIBDIR}/deflate
|
|
)
|