mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Merge pull request #13450 from jagannatharjun/cmake-fix
By default use dynamic runtime with MSVC on CMake
This commit is contained in:
commit
0284721ba2
2 changed files with 2 additions and 1 deletions
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
|
@ -143,6 +143,7 @@ jobs:
|
||||||
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DEST_WIN }}\scripts\buildsystems\vcpkg.cmake ^
|
-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_DEST_WIN }}\scripts\buildsystems\vcpkg.cmake ^
|
||||||
-DVCPKG_TARGET_TRIPLET=x64-windows-static-release ^
|
-DVCPKG_TARGET_TRIPLET=x64-windows-static-release ^
|
||||||
-DVERBOSE_CONFIGURE=ON ^
|
-DVERBOSE_CONFIGURE=ON ^
|
||||||
|
-DMSVC_RUNTIME_DYNAMIC=OFF ^
|
||||||
--graphviz=build\target_graph.dot
|
--graphviz=build\target_graph.dot
|
||||||
cmake --build build
|
cmake --build build
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
OFF "NOT GUI" OFF
|
OFF "NOT GUI" OFF
|
||||||
)
|
)
|
||||||
elseif (MSVC)
|
elseif (MSVC)
|
||||||
feature_option(MSVC_RUNTIME_DYNAMIC "Use MSVC dynamic runtime library (-MD) instead of static (-MT)" OFF)
|
feature_option(MSVC_RUNTIME_DYNAMIC "Use MSVC dynamic runtime library (-MD) instead of static (-MT)" ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(QBT_VER_STATUS "alpha1" CACHE STRING "Project status version. Should be empty for release builds.")
|
set(QBT_VER_STATUS "alpha1" CACHE STRING "Project status version. Should be empty for release builds.")
|
||||||
|
|
Loading…
Reference in a new issue