mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 07:22:12 -05:00
0cd414120b
Exact an exact match with Clang broke building when the compiler ID
was "AppleClang", reverting parts of [0].
[0]: 6549019ae1
49 lines
624 B
CMake
49 lines
624 B
CMake
# SPDX-FileCopyrightText: 2024 Blender Foundation
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# avoid noisy warnings
|
|
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
add_c_flag(
|
|
"-Wno-self-assign"
|
|
)
|
|
endif()
|
|
|
|
set(INC
|
|
.
|
|
)
|
|
|
|
set(INC_SYS
|
|
|
|
)
|
|
|
|
set(SRC
|
|
Alloc.c
|
|
CpuArch.c
|
|
LzFind.c
|
|
LzFindMt.c
|
|
LzFindOpt.c
|
|
LzmaDec.c
|
|
LzmaEnc.c
|
|
LzmaLib.c
|
|
Threads.c
|
|
|
|
7zTypes.h
|
|
7zWindows.h
|
|
Alloc.h
|
|
Compiler.h
|
|
CpuArch.h
|
|
LzFind.h
|
|
LzFindMt.h
|
|
LzHash.h
|
|
LzmaDec.h
|
|
LzmaEnc.h
|
|
LzmaLib.h
|
|
Precomp.h
|
|
Threads.h
|
|
)
|
|
|
|
set(LIB
|
|
)
|
|
|
|
blender_add_lib(extern_lzma "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|