windows路径问题

(cherry picked from commit 9cefb1b9e009575ee7f6a5aef631cb344b6e1df8)
This commit is contained in:
2025-10-29 16:07:16 +08:00
committed by speakeloudest
parent 0067017ca6
commit 9c2f9be6c5
3 changed files with 210 additions and 7 deletions
+6
View File
@@ -2,6 +2,12 @@
cmake_minimum_required(VERSION 3.14)
project(BearVPN LANGUAGES CXX)
# 设置 CMake 策略以兼容旧版本插件
# CMP0175: add_custom_command() 拒绝无效参数(用于兼容 flutter_inappwebview_windows 插件)
if(POLICY CMP0175)
cmake_policy(SET CMP0175 OLD)
endif()
# 设置静态链接
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")