diff --git a/CMakeLists.txt b/CMakeLists.txt index 8eb6e60f..2184ae90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,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()