CMake: Improve the comment about LIBS

This commit is contained in:
Lasse Collin 2024-06-24 21:06:18 +03:00
parent 33ec377729
commit d3f20382fc
1 changed files with 6 additions and 0 deletions

View File

@ -270,6 +270,12 @@ tuklib_large_file_support(ALL)
tuklib_integer(ALL) tuklib_integer(ALL)
# This is used for liblzma.pc generation to add -lrt and -lmd if needed. # This is used for liblzma.pc generation to add -lrt and -lmd if needed.
#
# The variable name LIBS comes from Autoconf where AC_SEARCH_LIBS adds the
# libraries it finds into the shell variable LIBS. These libraries need to
# be put into liblzma.pc too, thus liblzma.pc.in has @LIBS@ because that
# matches the Autoconf's variable. When CMake support was added, using
# the same variable with configure_file() was the simplest method.
set(LIBS) set(LIBS)
# Check for clock_gettime(). Do this before checking for threading so # Check for clock_gettime(). Do this before checking for threading so