Skip to content

Commit 085349b

Browse files
committed
Force MacOS compiler, don't specify libs
1 parent 8e8a0e7 commit 085349b

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/macos_distribution_check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: build
2121
run: |
2222
mkdir build && cd build
23-
cmake -DUSE_OPENMP=OFF ..
23+
cmake ..
2424
make
2525
- name: unit tests
2626
run: |

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
# CMake setup
44
cmake_minimum_required (VERSION 3.11)
55

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+
613
# Project initialisation
714
project("CovidSim")
815

tests/CMakeLists.txt

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@
33
# The "test-accept" target runs all tests and accepts their output.
44
add_custom_target("test-accept")
55

6-
if(APPLE)
7-
set(END_THREAD 1)
8-
else()
9-
set(END_THREAD 2)
10-
endif()
11-
126
function(add_integration_test TESTNAME INPUT OUTPUT_ROOT POPFILE R)
13-
foreach(j RANGE 1 ${END_THREAD})
7+
foreach(j RANGE 1 2)
148
set(test_name "${TESTNAME}-j${j}")
159
set(accept_name "${test_name}-accept")
1610
add_test(NAME "${test_name}"

0 commit comments

Comments
 (0)