Skip to content

Commit 7e17e65

Browse files
committed
feat(vcpkg):win sdk
1 parent 10a85ee commit 7e17e65

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# Note the current convention is to use the -S and -B options here to specify source
7676
# and build directories, but this is only available with CMake 3.13 and higher.
7777
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
78-
run: |
78+
run: >
7979
cmake $GITHUB_WORKSPACE -A ${{ matrix.type }}
8080
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
8181
-DDLL_SUFFIX=.${{matrix.dll_sfx}}

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
3939
set(CMAKE_SHARED_LINKER_FLAGS "-static-libstdc++ ${CMAKE_SHARED_LINKER_FLAGS}")
4040
endif()
4141
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
42+
set(VCPKG_PLATFORM_TOOLSET_VERSION "10.0.19041.0")
4243
set(CMAKE_CXX_FLAGS "/source-charset:utf-8 /execution-charset:utf-8 ${CMAKE_CXX_FLAGS} /EHsc-")
4344
string(REGEX MATCH static IS_STATIC ${VCPKG_TARGET_TRIPLET})
4445
if(IS_STATIC STREQUAL static)

0 commit comments

Comments
 (0)