From cc4e0f2642b53137f3760abab61826c20a695270 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 1 May 2020 15:14:50 +0300 Subject: [PATCH] mdbx-cmake: reformat install section. Change-Id: Id06fe24d46b5afade52dedbda747a7c8fb631263 --- CMakeLists.txt | 96 +++++++++++++------------------------------------- 1 file changed, 24 insertions(+), 72 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 033e7a91..d9d4c20f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -557,45 +557,21 @@ endif() if(MDBX_BUILD_SHARED_LIBRARY) if(CMAKE_VERSION VERSION_LESS 3.12) install(TARGETS mdbx EXPORT libmdbx - RUNTIME - DESTINATION bin - COMPONENT runtime - LIBRARY - DESTINATION lib - COMPONENT runtime - OBJECTS - DESTINATION lib - COMPONENT devel - ARCHIVE - DESTINATION lib - COMPONENT devel - PUBLIC_HEADER - DESTINATION include - COMPONENT devel - INCLUDES - DESTINATION include - COMPONENT devel) + RUNTIME DESTINATION bin COMPONENT runtime + LIBRARY DESTINATION bin COMPONENT runtime + OBJECTS DESTINATION lib COMPONENT devel + ARCHIVE DESTINATION lib COMPONENT devel + PUBLIC_HEADER DESTINATION include COMPONENT devel + INCLUDES DESTINATION include COMPONENT devel) else() install(TARGETS mdbx EXPORT libmdbx - RUNTIME - DESTINATION bin - COMPONENT runtime - LIBRARY - DESTINATION lib - COMPONENT runtime + RUNTIME DESTINATION bin COMPONENT runtime + LIBRARY DESTINATION bin COMPONENT runtime NAMELINK_COMPONENT devel - OBJECTS - DESTINATION lib - COMPONENT devel - ARCHIVE - DESTINATION lib - COMPONENT devel - PUBLIC_HEADER - DESTINATION include - COMPONENT devel - INCLUDES - DESTINATION include - COMPONENT devel) + OBJECTS DESTINATION lib COMPONENT devel + ARCHIVE DESTINATION lib COMPONENT devel + PUBLIC_HEADER DESTINATION include COMPONENT devel + INCLUDES DESTINATION include COMPONENT devel) endif() endif(MDBX_BUILD_SHARED_LIBRARY) @@ -626,45 +602,21 @@ endif(MDBX_BUILD_TOOLS) if(MDBX_INSTALL_STATIC) if(CMAKE_VERSION VERSION_LESS 3.12) install(TARGETS mdbx-static EXPORT libmdbx - RUNTIME - DESTINATION bin - COMPONENT runtime - LIBRARY - DESTINATION lib - COMPONENT runtime - OBJECTS - DESTINATION lib - COMPONENT devel - ARCHIVE - DESTINATION lib - COMPONENT devel - PUBLIC_HEADER - DESTINATION include - COMPONENT devel - INCLUDES - DESTINATION include - COMPONENT devel) + RUNTIME DESTINATION bin COMPONENT runtime + LIBRARY DESTINATION bin COMPONENT runtime + OBJECTS DESTINATION lib COMPONENT devel + ARCHIVE DESTINATION lib COMPONENT devel + PUBLIC_HEADER DESTINATION include COMPONENT devel + INCLUDES DESTINATION include COMPONENT devel) else() install(TARGETS mdbx-static EXPORT libmdbx - RUNTIME - DESTINATION bin - COMPONENT runtime - LIBRARY - DESTINATION lib - COMPONENT runtime + RUNTIME DESTINATION bin COMPONENT runtime + LIBRARY DESTINATION bin COMPONENT runtime NAMELINK_COMPONENT devel - OBJECTS - DESTINATION lib - COMPONENT devel - ARCHIVE - DESTINATION lib - COMPONENT devel - PUBLIC_HEADER - DESTINATION include - COMPONENT devel - INCLUDES - DESTINATION include - COMPONENT devel) + OBJECTS DESTINATION lib COMPONENT devel + ARCHIVE DESTINATION lib COMPONENT devel + PUBLIC_HEADER DESTINATION include COMPONENT devel + INCLUDES DESTINATION include COMPONENT devel) endif() endif(MDBX_INSTALL_STATIC)