]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Use native newlines in liblzma.pc
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 16 Jun 2024 16:25:07 +0000 (19:25 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Sep 2024 16:06:23 +0000 (19:06 +0300)
vcpkg doesn't specify the newline type so it should be fine to
use native newlines in liblzma.pc on Windows.

(cherry picked from commit 5ca96a93488d0f5a530c78b274cac317453807ff)

CMakeLists.txt

index b505c900d66fa1dc082bef28704c255602d6b911..19daabd58abdb8fcb9e13696e0d9d092e191802f 100644 (file)
@@ -1413,9 +1413,7 @@ else()
 endif()
 
 set(PTHREAD_CFLAGS "${CMAKE_THREAD_LIBS_INIT}")
-configure_file(src/liblzma/liblzma.pc.in liblzma.pc
-               @ONLY
-               NEWLINE_STYLE LF)
+configure_file(src/liblzma/liblzma.pc.in liblzma.pc @ONLY)
 
 # Install the library binary. The INCLUDES specifies the include path that
 # is exported for other projects to use but it doesn't install any files.