diff --git a/CMakeLists.txt b/CMakeLists.txt index 151ffe9c..785ee8a7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -273,7 +273,7 @@ if(NOT HAVE_CLOCK_GETTIME) # CMAKE_REQUIRED_LIBRARIES for further tests too. if(HAVE_CLOCK_GETTIME_LIBRT) link_libraries(rt) - set(LIBS "-lrt") # For liblzma.pc + set(LIBS "-lrt ${LIBS}") # For liblzma.pc else() list(REMOVE_AT CMAKE_REQUIRED_LIBRARIES 0) endif()