diff options
| author | OPNA2608 <opna2608@protonmail.com> | 2024-10-11 23:06:40 +0200 |
|---|---|---|
| committer | Aliaksei Levin <22669599+levlam@users.noreply.github.com> | 2024-10-21 12:33:02 +0300 |
| commit | 1e380de89fddff7132b31372f3c90091b6375077 (patch) | |
| tree | 43b1138e425d4307f6e67cd3ba06df7aa6ef13e7 /tddb | |
| parent | 89b22ed7e77cd4f6f46bf893ef887843bde49a3b (diff) | |
Add option to install only BUILD_SHARED_LIBS-matching files
TD_ENABLE_FILTERED_INSTALL allows limiting installed libraries & supporting files to only those matching
BUILD_SHARED_LIBS.
Diffstat (limited to 'tddb')
| -rw-r--r-- | tddb/CMakeLists.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tddb/CMakeLists.txt b/tddb/CMakeLists.txt index 85573170d..7f9d40a84 100644 --- a/tddb/CMakeLists.txt +++ b/tddb/CMakeLists.txt @@ -55,7 +55,9 @@ if (NOT CMAKE_CROSSCOMPILING) target_link_libraries(binlog_dump PRIVATE tddb) endif() -install(TARGETS tddb EXPORT TdStaticTargets - LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" - ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" -) +if (NOT TD_ENABLE_FILTERED_INSTALL OR NOT BUILD_SHARED_LIBS) + install(TARGETS tddb EXPORT TdStaticTargets + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ) +endif() |
