mirror of https://git.tukaani.org/xz.git
CMake: Set only "prefix" as an absolute path in liblzma.pc
CMake provides variables that are relative to CMAKE_INSTALL_PREFIX so use them instead of repeating the full path.
This commit is contained in:
parent
e0d6d05ce0
commit
5d1c649ba9
|
@ -1394,9 +1394,9 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/liblzma-config.cmake"
|
||||||
|
|
||||||
# Create liblzma.pc.
|
# Create liblzma.pc.
|
||||||
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||||
set(exec_prefix "${CMAKE_INSTALL_PREFIX}")
|
set(exec_prefix "\${prefix}")
|
||||||
set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
|
set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
|
||||||
set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
|
set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
|
||||||
set(PTHREAD_CFLAGS "${CMAKE_THREAD_LIBS_INIT}")
|
set(PTHREAD_CFLAGS "${CMAKE_THREAD_LIBS_INIT}")
|
||||||
configure_file(src/liblzma/liblzma.pc.in liblzma.pc
|
configure_file(src/liblzma/liblzma.pc.in liblzma.pc
|
||||||
@ONLY
|
@ONLY
|
||||||
|
|
Loading…
Reference in New Issue