CMake: Fix time.h checks not running on second CMake run.
commit7379bb3eed428c0ae734d0cc4a1fd04359d53f08
authorJia Tan <jiat0218@gmail.com>
Tue, 12 Sep 2023 14:36:12 +0000 (12 22:36 +0800)
committerJia Tan <jiat0218@gmail.com>
Tue, 12 Sep 2023 14:49:03 +0000 (12 22:49 +0800)
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