Enable optimizations on Debug builds for executables used for the build process (datatoc and glsl_preprocess) and enable unity builds for shader preprocessing targets. Debug: From 28.9s to 5.7s Release: From 4.9s to 3.5s Pull Request: https://projects.blender.org/blender/blender/pulls/138274
15 lines
343 B
CMake
15 lines
343 B
CMake
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Build `datatoc` executable.
|
|
set(SRC
|
|
datatoc.cc
|
|
)
|
|
|
|
# `SRC_DNA_INC` is defined in the parent directory.
|
|
add_executable(datatoc ${SRC})
|
|
optimize_debug_target(datatoc)
|