]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Improve the comment about LIBS
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Jun 2024 18:06:18 +0000 (21:06 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Sep 2024 16:17:02 +0000 (19:17 +0300)
(cherry picked from commit d3f20382fc1bd865eb70a65455d5022ed05caac8)

CMakeLists.txt

index 785ee8a7189248f004b51304c54a0bed59cf7c86..3c24e54155aca5804be0faf3d42fffea260bbe43 100644 (file)
@@ -256,6 +256,12 @@ tuklib_large_file_support(ALL)
 tuklib_integer(ALL)
 
 # This is used for liblzma.pc generation to add -lrt 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)
 
 # Check for clock_gettime(). Do this before checking for threading so