From ef5d15b71908e3b4dcf2811ee8e0b8c81f75c0cd Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Sun, 6 Dec 2020 20:13:37 -0800 Subject: [PATCH] [cmake] Fix pkgconfig quoting The pkgconfig file generation didn't correctly escape the paths. It both quoted and escaped spaces with `\`, which doesn't work. The fix is to remove the quoting. --- build/cmake/lib/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/cmake/lib/CMakeLists.txt b/build/cmake/lib/CMakeLists.txt index 9a221d33..088c8760 100644 --- a/build/cmake/lib/CMakeLists.txt +++ b/build/cmake/lib/CMakeLists.txt @@ -157,14 +157,14 @@ if (UNIX OR MINGW) add_custom_target(libzstd.pc ALL ${CMAKE_COMMAND} - -DIN="${LIBRARY_DIR}/libzstd.pc.in" + -DIN=${LIBRARY_DIR}/libzstd.pc.in -DOUT="libzstd.pc" -DPREFIX="${PREFIX}" -DEXEC_PREFIX="${EXEC_PREFIX}" -DINCLUDEDIR="${INCLUDEDIR_PREFIX}${INCLUDEDIR_SUFFIX}" -DLIBDIR="${LIBDIR_PREFIX}${LIBDIR_SUFFIX}" -DVERSION="${VERSION}" - -P "${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.cmake" + -P ${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.cmake COMMENT "Creating pkg-config file") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libzstd.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")