]> git.ipfire.org Git - thirdparty/xz.git/commit
CMake: Fix tuklib_use_system_extensions
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 10 Mar 2025 11:13:30 +0000 (13:13 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 10 Mar 2025 11:41:50 +0000 (13:41 +0200)
commit1028e52c93d2292b44ff7bae8e721025d2f2c94d
treef8a1b4a54abdeb0108969e47849de496366fd235
parent80e48836024ec2d7cbd557575be6da3d1f055cba
CMake: Fix tuklib_use_system_extensions

Revert back to a macro so that list(APPEND CMAKE_REQUIRED_DEFINITIONS)
will affect the calling scope. I had forgotten that while CMake
functions inherit the variables from the parent scope, the changes
to them are local unless using set(... PARENT_SCOPE).

This also means that the commit message in 5bb77d0920dc is wrong. The
commit itself is still fine, making it clearer that -DHAVE_SYS_PARAM_H
is only needed for specific check_c_source_compiles() calls.

Fixes: c1ea7bd0b60eed6ebcdf9a713ca69034f6f07179
cmake/tuklib_common.cmake