fix: 修复 Windows 权限模块构建

This commit is contained in:
Chenx Dust
2026-07-28 14:30:42 +08:00
parent f4f97c5141
commit da1a4efe5f
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ if (WIN32)
${CMAKE_CURRENT_SOURCE_DIR}/resource/icon.rc
)
set(PLATFORM_LIBS wininet rasapi32)
set(PLATFORM_LIBS wininet rasapi32 shell32)
elseif(APPLE)
message("Building for MacOS")

View File

@@ -4,8 +4,8 @@
#include <QStringList>
#if defined(Q_OS_WIN)
#include <shellapi.h>
#include <windows.h>
#include <shellapi.h>
#elif defined(Q_OS_UNIX)
#include <unistd.h>
#endif