mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
In CMake, set(VAR) without a value unsets the variable rather than initializing it to empty. This causes issues with --warn-uninitialized and can lead to unexpected behavior when the variable is used later. Use set(VAR "") when initializing variables that will be appended to or used in expressions. Use unset() to explicitly remove temporary variables after use. Ref !153503
27 lines
679 B
CMake
27 lines
679 B
CMake
# SPDX-FileCopyrightText: 2002-2022 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(FLEXBISON_EXTRA_ARGS "")
|
|
|
|
ExternalProject_Add(external_flexbison
|
|
URL file://${PACKAGE_DIR}/${FLEXBISON_FILE}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
URL_HASH ${FLEXBISON_HASH_TYPE}=${FLEXBISON_HASH}
|
|
PREFIX ${BUILD_DIR}/flexbison
|
|
|
|
CMAKE_ARGS
|
|
-DCMAKE_INSTALL_PREFIX=${LIBDIR}/flexbison
|
|
${DEFAULT_CMAKE_FLAGS}
|
|
${FLEXBISON_EXTRA_ARGS}
|
|
|
|
CONFIGURE_COMMAND echo .
|
|
BUILD_COMMAND echo .
|
|
|
|
INSTALL_COMMAND
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
|
${BUILD_DIR}/flexbison/src/external_flexbison/
|
|
${LIBDIR}/flexbison/
|
|
|
|
INSTALL_DIR ${LIBDIR}/flexbison
|
|
)
|