Skip to content

Commit be46000

Browse files
committed
Use githup action to call vcvarsall.bat
Use cl without path
1 parent a82f7af commit be46000

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v4
2929
- uses: ilammy/msvc-dev-cmd@v1
30-
with: "17.XX" # VS 2023
3130

3231
- name: cmake workflow
3332
run: |
34-
cmake --workflow --preset debug || echo ignored
33+
cmake --workflow --preset release || echo ignored
3534
3635
# - name: environment
3736
# run: cmake -E make_directory ${{github.workspace}}/build/VS

cmake/CMakeWindowsPresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"root-config"
1414
],
1515
"cacheVariables": {
16-
"CMAKE_CXX_COMPILER": "C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe",
16+
"CMAKE_CXX_COMPILER": "cl",
1717
"CMAKE_CXX_FLAGS": "/W3 /EHsc /w14242 /w14254 /w14263 /w14265 /w14287 /w14289 /w14296 /w14311 /w14545 /w14546 /w14547 /w14549 /w14555 /w14640 /w14826 /w14928 /WX"
1818
},
1919
"condition": {

0 commit comments

Comments
 (0)