diff --git a/.github/workflows/ci_windows.yaml b/.github/workflows/ci_windows.yaml index 7a9b0910d..a5e06b1a2 100644 --- a/.github/workflows/ci_windows.yaml +++ b/.github/workflows/ci_windows.yaml @@ -121,7 +121,7 @@ jobs: ${{ env.libtorrent_path }} cd ${{ env.libtorrent_path }} $env:CXXFLAGS+=" /guard:cf" - $env:LDFLAGS+=" /guard:cf" + $env:LDFLAGS+=" /GUARD:CF" cmake ` -B build ` -G "Ninja" ` diff --git a/cmake/Modules/CommonConfig.cmake b/cmake/Modules/CommonConfig.cmake index 85535313a..32aebd62e 100644 --- a/cmake/Modules/CommonConfig.cmake +++ b/cmake/Modules/CommonConfig.cmake @@ -89,7 +89,7 @@ if (MSVC) /Zc:__cplusplus ) target_link_options(qbt_common_cfg INTERFACE - /guard:cf + /GUARD:CF $<$>:/OPT:REF /OPT:ICF> # suppress linking warning due to /INCREMENTAL and /OPT:ICF being both ON $<$:/INCREMENTAL:NO>