]> 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>
Tue, 25 Jun 2024 11:54:53 +0000 (14:54 +0300)
CMakeLists.txt

index 51386e33a08f57532e5887c810589695b2fc2173..cb0828091dccd8c0040c0c8a84a643b78bfd574e 100644 (file)
@@ -270,6 +270,12 @@ tuklib_large_file_support(ALL)
 tuklib_integer(ALL)
 
 # 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)
 
 # Check for clock_gettime(). Do this before checking for threading so