]> git.ipfire.org Git - thirdparty/zstd.git/commit
cmake: use configure_file() for creating the .pc file 2462/head
authorChristoph Reiter <reiter.christoph@gmail.com>
Sat, 9 Jan 2021 08:24:45 +0000 (09:24 +0100)
committerChristoph Reiter <reiter.christoph@gmail.com>
Sat, 9 Jan 2021 08:29:16 +0000 (09:29 +0100)
commit0766540b598a5a1e4d8935bfa2513772f7f1e91b
treed1353db845766f14501582f6d564e439df645c61
parent821d9acd17f251a8ee548eadbc3c5bccdfca7691
cmake: use configure_file() for creating the .pc file

Escaping in add_custom_target() seems to depend on the shell used in the cmake
generator and using Ninja on Windows, which uses cmd.exe, results in stray backslashes
in the .pc file.

Instead of going through escaping hell just use configure_file() with the existing
libzstd.pc.in file already used by the simple Makefile based build system.

This fixes the .pc file syntax when building zstd with CMake+Ninja+gcc on Windows.
build/cmake/lib/CMakeLists.txt
build/cmake/lib/pkgconfig.cmake [deleted file]