]> git.ipfire.org Git - thirdparty/xz.git/commit
CMake: Fix time.h checks not running on second CMake run.
authorJia Tan <jiat0218@gmail.com>
Tue, 12 Sep 2023 14:36:12 +0000 (22:36 +0800)
committerJia Tan <jiat0218@gmail.com>
Mon, 30 Oct 2023 17:03:25 +0000 (01:03 +0800)
commita70e96d2da761b8b3a77bf14e08002d871e5950b
tree86b9f052d205849feb7547a68e9e630b4e37dbaa
parentd5275d83bd2a9701c5feb8666785007c074b1359
CMake: Fix time.h checks not running on second CMake run.

If CMake was configured more than once, HAVE_CLOCK_GETTIME and
HAVE_CLOCK_MONOTONIC would not be set as compile definitions. The check
for librt being needed to provide HAVE_CLOCK_GETTIME was also
simplified.
CMakeLists.txt