]> 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>
Tue, 25 Jun 2024 12:56:39 +0000 (15:56 +0300)
commite620f35097c0ad20cd76d8258750aa706758ced9
tree223ef0eb32d7002794a58a689b385d542f7a8a86
parent068a70e54932ca32ca2922aff5a67a62615c650b
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.
CMakeLists.txt