Skip to content

Commit

Permalink
Try to use MSVC compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmolot committed Nov 21, 2024
1 parent c2c91ee commit aceca0b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
include:
- os: windows-latest
arch: x64
CMAKE_ARCH_FLAG: --preset=x64-windows
- os: windows-latest
arch: x86
CMAKE_ARCH_FLAG: -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -DVCPKG_TARGET_TRIPLET=x86-windows
CMAKE_ARCH_FLAG: --preset=x86-windows
- os: ubuntu-20.04
arch: x86
CMAKE_ARCH_FLAG: -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" -DVCPKG_TARGET_TRIPLET=x86-linux
Expand Down
16 changes: 15 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,26 @@
"configurePresets": [
{
"name": "vcpkg",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"BUILD_SHARED_LIBS": "OFF"
}
},
{
"name": "x64-windows",
"inherits": "vcpkg",
"architecture": "x64"
},
{
"name": "x86-windows",
"inherits": "vcpkg",
"architecture": "x86"
},
{
"name": "unix",
"inherits": "vcpkg",
"generator": "Ninja"
}
]
}

0 comments on commit aceca0b

Please sign in to comment.