Skip to content

Commit 063794b

Browse files
wangrong1069deepin-bot[bot]
authored andcommitted
chore: Remove unnecessary static library installation
- Removed CMAKE_INSTALL_PREFIX and installation commands from basestruct and log CMakeLists.txt files, indicating these targets are for internal use only. - Updated memory limit setting in diskmanager-daemon.service from MemoryLimit to MemoryMax for better resource management. Log: Remove unnecessary static library installation Task: https://pms.uniontech.com/task-view-381447.html
1 parent c8cfea3 commit 063794b

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

basestruct/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,5 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
3636
Threads::Threads
3737
)
3838

39-
set(CMAKE_INSTALL_PREFIX /usr)
40-
# Install the executable
41-
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
39+
# not install for internal use
4240

log/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,5 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
5959
Qt${QT_VERSION_MAJOR}::DBus
6060
)
6161

62-
set(CMAKE_INSTALL_PREFIX /usr)
63-
# Install the executable
64-
install(TARGETS ${PROJECT_NAME} DESTINATION lib)
62+
# not install for internal use
6563

service/assets/data/diskmanager-daemon.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Type=dbus
77
BusName=com.deepin.diskmanager
88
ExecStart=/usr/lib/deepin-daemon/deepin-diskmanager-service
99
CapabilityBoundingSet=~CAP_NET_RAW
10-
MemoryLimit=8G
10+
MemoryMax=8G
1111

1212
[Install]
1313
WantedBy=multi-user.target

0 commit comments

Comments
 (0)