[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.
This commit is contained in:
parent
85f8a8ca4d
commit
ef5d15b719
@ -157,14 +157,14 @@ if (UNIX OR MINGW)
|
|||||||
|
|
||||||
add_custom_target(libzstd.pc ALL
|
add_custom_target(libzstd.pc ALL
|
||||||
${CMAKE_COMMAND}
|
${CMAKE_COMMAND}
|
||||||
-DIN="${LIBRARY_DIR}/libzstd.pc.in"
|
-DIN=${LIBRARY_DIR}/libzstd.pc.in
|
||||||
-DOUT="libzstd.pc"
|
-DOUT="libzstd.pc"
|
||||||
-DPREFIX="${PREFIX}"
|
-DPREFIX="${PREFIX}"
|
||||||
-DEXEC_PREFIX="${EXEC_PREFIX}"
|
-DEXEC_PREFIX="${EXEC_PREFIX}"
|
||||||
-DINCLUDEDIR="${INCLUDEDIR_PREFIX}${INCLUDEDIR_SUFFIX}"
|
-DINCLUDEDIR="${INCLUDEDIR_PREFIX}${INCLUDEDIR_SUFFIX}"
|
||||||
-DLIBDIR="${LIBDIR_PREFIX}${LIBDIR_SUFFIX}"
|
-DLIBDIR="${LIBDIR_PREFIX}${LIBDIR_SUFFIX}"
|
||||||
-DVERSION="${VERSION}"
|
-DVERSION="${VERSION}"
|
||||||
-P "${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.cmake"
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.cmake
|
||||||
COMMENT "Creating pkg-config file")
|
COMMENT "Creating pkg-config file")
|
||||||
|
|
||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libzstd.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libzstd.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
||||||
|
Loading…
Reference in New Issue
Block a user