File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 20
20
- name : build
21
21
run : |
22
22
mkdir build && cd build
23
- cmake -DUSE_OPENMP=OFF ..
23
+ cmake ..
24
24
make
25
25
- name : unit tests
26
26
run : |
Original file line number Diff line number Diff line change 3
3
# CMake setup
4
4
cmake_minimum_required (VERSION 3.11)
5
5
6
+ # Force Mac OS to use a compiler that can compile multi-threaded.
7
+
8
+ if (APPLE )
9
+ set (CMAKE_C_COMPILER "/usr/local/opt/llvm/bin/clang" )
10
+ set (CMAKE_CXX_COMPILER "/usr/local/opt/llvm/bin/clang++" )
11
+ endif ()
12
+
6
13
# Project initialisation
7
14
project ("CovidSim" )
8
15
Original file line number Diff line number Diff line change 3
3
# The "test-accept" target runs all tests and accepts their output.
4
4
add_custom_target ("test-accept" )
5
5
6
- if (APPLE )
7
- set (END_THREAD 1)
8
- else ()
9
- set (END_THREAD 2)
10
- endif ()
11
-
12
6
function (add_integration_test TESTNAME INPUT OUTPUT_ROOT POPFILE R)
13
- foreach (j RANGE 1 ${END_THREAD} )
7
+ foreach (j RANGE 1 2 )
14
8
set (test_name "${TESTNAME} -j${j} " )
15
9
set (accept_name "${test_name} -accept" )
16
10
add_test (NAME "${test_name} "
You can’t perform that action at this time.
0 commit comments