Skip to content

Commit

Permalink
On '1.7.x-cmake-improvements' branch: Merge r1917162 from trunk:
Browse files Browse the repository at this point in the history
  * CMakeLists.txt: Export targets to apr:: namespace.

git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x-cmake-improvements@1917221 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Apr 20, 2024
1 parent 3b247a7 commit 7afd350
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,20 @@ 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"
)

IF(INSTALL_PDB)
INSTALL(FILES ${install_bin_pdb}
DESTINATION bin
Expand Down

0 comments on commit 7afd350

Please sign in to comment.