Skip to content

Commit

Permalink
Fix MSVC version
Browse files Browse the repository at this point in the history
  • Loading branch information
complexlogic committed Sep 14, 2023
1 parent 99c7e75 commit 3175e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:

- name: Configure
run: cmake -S . -B build
-G "${{env.CMAKE_GENERATOR}}"
-G "${{env.CMAKE_GENERATOR}}"
-T v143,version=14.37
-DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
-DVCPKG_OVERLAY_PORTS=build/overlays/ports
-DVCPKG_OVERLAY_TRIPLETS=config/vcpkg_triplets
-DVCPKG_TARGET_TRIPLET=${{env.VCPKG_TRIPLET}}
-DCMAKE_VS_PLATFORM_TOOLSET_VERSION=14.37

- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ include_directories(${PROJECT_BINARY_DIR})
add_compile_definitions("$<$<CONFIG:DEBUG>:DEBUG>")
if (WIN32)
set (USE_STD_FORMAT true)
if (MSVC_VERSION AND MSVC_VERSION VERSION_LESS 17.7)
if (MSVC_VERSION AND MSVC_VERSION VERSION_LESS 1937)
message(FATAL_ERROR "Visual Studio 17.7 and later supported only")
endif ()
endif ()
Expand Down

0 comments on commit 3175e0e

Please sign in to comment.