]> git.ipfire.org Git - thirdparty/xz.git/commit
CMake: Disable unity builds project-wide
authorDexter Castor Döpping <dexter.c.dopping@gmail.com>
Sun, 22 Dec 2024 12:44:03 +0000 (13:44 +0100)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 22 Dec 2024 18:06:24 +0000 (20:06 +0200)
commitbf6da9a573a780cd1a7fb1728ef55d09e58dad11
tree80d2c1753e7f44ff523d88796f911c43329f4f34
parentf8c328eed1bf0a0168132025a52116b7735f894c
CMake: Disable unity builds project-wide

liblzma and xz can't be compiled as a unity/jumbo build because of
redeclarations and type name reuse. The CMake documentation recommends
setting UNITY_BUILD to false in this case.

This is especially important if we're compiled as a subproject and the
consumer wants to use CMAKE_UNITY_BUILD=ON for the rest of their code
base.

Closes: https://github.com/tukaani-project/xz/pull/158
CMakeLists.txt