]> git.ipfire.org Git - thirdparty/xz.git/commit
CMake: Always add pthread flags into CMAKE_REQUIRED_LIBRARIES
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 25 Jun 2024 12:51:48 +0000 (15:51 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Sep 2024 16:25:03 +0000 (19:25 +0300)
commit52a8c87f37f4bd133f670722d2d4b73a74e352bc
tree1e1cec84e950ee12793a3f9da2c397ef2d1dbf10
parent1591747bf692d10c3b2fd92c9dc8ba931626fd84
CMake: Always add pthread flags into CMAKE_REQUIRED_LIBRARIES

It was weird to add CMAKE_THREAD_LIBS_INIT in CMAKE_REQUIRED_LIBRARIES
only if CLOCK_MONOTONIC is available. Alternative would be to remove
the thread libs from CMAKE_REQUIRED_LIBRARIES after the check for
pthread_condattr_setclock() but keeping the libs should be fine too.
Then it's ready in case more pthread functions were wanted some day.

(cherry picked from commit e620f35097c0ad20cd76d8258750aa706758ced9)
CMakeLists.txt