]> 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>
Tue, 12 Sep 2023 14:49:03 +0000 (22:49 +0800)
commit7379bb3eed428c0ae734d0cc4a1fd04359d53f08
tree1614ebaf62be7c3914de330369fd3766085ca9e1
parent5d691fe58286b92d704c0dc5cd0c4df22881c6c6
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