Skip to content

Commit

Permalink
Merge pull request #532 from Roman3349/fix/cmake-install-target
Browse files Browse the repository at this point in the history
Fix CMake install target lib path
  • Loading branch information
fpagliughi authored Jan 29, 2025
2 parents 22f88a3 + de17934 commit e6240c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# and Eclipse Distribution License v1.0 which accompany this distribution.
#
#
# The Eclipse Public License is available at
# http://www.eclipse.org/legal/epl-v20.html
# and the Eclipse Distribution License is available at
Expand All @@ -34,13 +34,13 @@ export(EXPORT ${package_name}
)

install(EXPORT ${package_name}
DESTINATION lib/cmake/${package_name}
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${package_name}
FILE ${package_name}Targets.cmake
NAMESPACE ${package_name}::
)

install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/${package_name}Config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/${package_name}ConfigVersion.cmake"
DESTINATION lib/cmake/${package_name}
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${package_name}
)

0 comments on commit e6240c0

Please sign in to comment.