mirror of
https://git.tukaani.org/xz.git
synced 2025-02-20 07:28:20 +00:00
CMake: Keep existing options in LIBS when adding -lrt
This makes no difference yet because -lrt is currently the only option that might be added to LIBS. (cherry picked from commit 75ce4797d49621710e6da95d8cb91541028c6d68)
This commit is contained in:
parent
e24a762f1b
commit
85a55e1120
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user