7a395e2e7f
The last good commit wasf57e4c5b98. After this one more fix was committed, this one is preserved as well:67bd678887.
25 lines
891 B
CMake
25 lines
891 B
CMake
# SPDX-FileCopyrightText: 2002-2022 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Generated configuration files use an old `aclocal-1.15` on RockyLinux8.
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
set(_autoconf_cmd_optional ./autogen.sh &&)
|
|
else()
|
|
set(_autoconf_cmd_optional)
|
|
endif()
|
|
|
|
|
|
ExternalProject_Add(external_flex
|
|
URL file://${PACKAGE_DIR}/${FLEX_FILE}
|
|
URL_HASH ${FLEX_HASH_TYPE}=${FLEX_HASH}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
PREFIX ${BUILD_DIR}/flex
|
|
CONFIGURE_COMMAND ${CONFIGURE_ENV} && cd ${BUILD_DIR}/flex/src/external_flex/ && ${_autoconf_cmd_optional} ${CONFIGURE_COMMAND} --prefix=${LIBDIR}/flex
|
|
BUILD_COMMAND ${CONFIGURE_ENV} && cd ${BUILD_DIR}/flex/src/external_flex/ && make -j${MAKE_THREADS}
|
|
INSTALL_COMMAND ${CONFIGURE_ENV} && cd ${BUILD_DIR}/flex/src/external_flex/ && make install
|
|
INSTALL_DIR ${LIBDIR}/flex
|
|
)
|
|
|
|
unset(_autoconf_cmd_optional)
|