mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Closes: https://bugs.gentoo.org/864169 Closes: https://github.com/gentoo/gentoo/pull/27456 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
Install to share, it's header-only
|
|
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -105,7 +105,7 @@ target_include_directories(sol2 ${sol2-system-include}
|
|
configure_package_config_file(
|
|
cmake/sol2-config.cmake.in
|
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake/sol2-config.cmake"
|
|
- INSTALL_DESTINATION lib/cmake/sol2
|
|
+ INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}/cmake/sol2
|
|
NO_CHECK_REQUIRED_COMPONENTS_MACRO)
|
|
|
|
write_basic_package_version_file(
|
|
@@ -121,7 +121,7 @@ if(SOL2_ENABLE_INSTALL)
|
|
|
|
install(EXPORT sol2
|
|
FILE sol2-targets.cmake
|
|
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/sol2")
|
|
+ DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/sol2")
|
|
|
|
install(DIRECTORY include/sol
|
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
|
@@ -129,7 +129,7 @@ if(SOL2_ENABLE_INSTALL)
|
|
install(FILES
|
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake/sol2-config.cmake"
|
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake/sol2-config-version.cmake"
|
|
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/sol2")
|
|
+ DESTINATION "${CMAKE_INSTALL_DATADIR}/cmake/sol2")
|
|
endif()
|
|
|
|
# # # sol2 Library - Single header target
|