Skip to content

Commit e5d13bc

Browse files
committed
add force_openmp optoin
1 parent 5e72d35 commit e5d13bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

meson.build

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ projectnamespace = 'themachinethatgoesping'
1919
# --- dependencies ---
2020

2121
# openmp (not used in clang-cl / windows)
22-
if meson.get_compiler('cpp').get_id() == 'clang-cl'
23-
omp_dep = declare_dependency()
24-
else
22+
omp_dep = declare_dependency()
23+
if meson.get_compiler('cpp').get_id() != 'clang-cl' or get_option('force_openmp').enabled()
2524
omp_dep = dependency('openmp')
2625
endif
2726

meson_options.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
option('pydev_install', type : 'feature', value : 'disabled', description : 'On install: Link to python package src directories, rather than installing the souce to hdd.', yield : true)
99

1010
option('dynamic_boost', type : 'feature', value : 'disabled', description : 'Use dynamic boost libraries instead of static ones', yield : true)
11+
option('force_openmp', type : 'feature', value : 'disabled', description : 'Force the use of openmp', yield : true)
1112

0 commit comments

Comments
 (0)