Skip to content

Commit 5eaa302

Browse files
committed
setup generator
1 parent 2ed0fc5 commit 5eaa302

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,20 @@ jobs:
4949
steps:
5050
- uses: actions/checkout@v4
5151

52-
- name: Configure CMake
52+
- name: Configure CMake (Visual Studio)
53+
if: ${{ matrix.cpp_compiler == 'cl' }}
54+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
55+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
56+
run: >
57+
cmake
58+
-S .
59+
-B build
60+
-G "Visual Studio 17 2022"
61+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
62+
-DPAINFUL_CPP_STRING_CONVERSION_ENABLE_TEST=ON
63+
64+
- name: Configure CMake (Ninja)
65+
if: ${{ matrix.cpp_compiler != 'cl' }}
5366
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
5467
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
5568
run: >

0 commit comments

Comments
 (0)