On 29. 5. 25 15:27, br...@apache.org wrote:
Author: brane
Date: Thu May 29 13:27:29 2025
New Revision: 1925933
URL:http://svn.apache.org/viewvc?rev=1925933&view=rev
Log:
* CMakeLists.txt: Install the pkg-config file to the location defined by the
GNUInstallDirs module instead of hard-coding ".../lib".
Suggested by: jamessan
Modified:
serf/trunk/CMakeLists.txt
Modified: serf/trunk/CMakeLists.txt
URL:http://svn.apache.org/viewvc/serf/trunk/CMakeLists.txt?rev=1925933&r1=1925932&r2=1925933&view=diff
==============================================================================
--- serf/trunk/CMakeLists.txt (original)
+++ serf/trunk/CMakeLists.txt Thu May 29 13:27:29 2025
@@ -411,8 +411,9 @@ if(NOT SERF_WINDOWS)
endfunction()
make_pkgconfig()
+ include(GNUInstallDirs)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/serf-${SERF_MAJOR_VERSION}.pc"
- DESTINATION "lib/pkgconfig")
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif()
Later I'll look at the rest of the install logic, we should use this for
the other libraries and include files, too.
-- Brane