From: Lasse Collin Date: Mon, 24 Jun 2024 18:06:18 +0000 (+0300) Subject: CMake: Improve the comment about LIBS X-Git-Tag: v5.7.1alpha~153 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d3f20382fc1bd865eb70a65455d5022ed05caac8;p=thirdparty%2Fxz.git CMake: Improve the comment about LIBS --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 51386e33..cb082809 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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