You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by iv...@apache.org on 2024/04/19 15:50:00 UTC
svn commit: r1917162 - /apr/apr/trunk/CMakeLists.txt
Author: ivan
Date: Fri Apr 19 15:50:00 2024
New Revision: 1917162
URL: http://svn.apache.org/viewvc?rev=1917162&view=rev
Log:
* CMakeLists.txt: Export targets to apr:: namespace.
Modified:
apr/apr/trunk/CMakeLists.txt
Modified: apr/apr/trunk/CMakeLists.txt
URL: http://svn.apache.org/viewvc/apr/apr/trunk/CMakeLists.txt?rev=1917162&r1=1917161&r2=1917162&view=diff
==============================================================================
--- apr/apr/trunk/CMakeLists.txt (original)
+++ apr/apr/trunk/CMakeLists.txt Fri Apr 19 15:50:00 2024
@@ -712,12 +712,19 @@ IF(APR_BUILD_TESTAPR)
ENDIF (APR_BUILD_TESTAPR)
# Installation
+string(TOLOWER "${PROJECT_NAME}" project_name_lower)
-INSTALL(TARGETS ${install_targets}
+INSTALL(TARGETS ${install_targets} EXPORT apr-config
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
- )
+)
+
+INSTALL(EXPORT apr-config
+ NAMESPACE apr::
+ DESTINATION "lib/cmake/${project_name_lower}"
+ FILE "${project_name_lower}-config.cmake"
+)
# For DSO modules, install only binaries
INSTALL(FILES ${install_modules}