Skip to content

Commit 1407d1d

Browse files
committed
Custom cmake configuration for windows
1 parent 44eb364 commit 1407d1d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/benchmark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Configure CMake
3636
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3737
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
38-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBENCHMARK=ON
38+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBENCHMARK=ON
3939

4040
- name: Build
4141
# Build your program with the given configuration

.github/workflows/cmake.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jobs:
3939
- name: Configure CMake
4040
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
4141
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
42-
run: cmake -DTEST=ON -B ${{github.workspace}}/build
42+
run: |
43+
if [ "${{ matrix.os }}" != "windows-latest" ]; then
44+
cmake -DTEST=ON -Dgtest_disable_pthreads=ON -B ${{github.workspace}}/build
45+
else
46+
cmake -DTEST=ON -B ${{github.workspace}}/build
4347
4448
- name: Build
4549
# Build your program with the given configuration

0 commit comments

Comments
 (0)