File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ set (CMAKE_INSTALL_PREFIX "$ENV{INSTALLDIR}")
9
9
set (GSHHG_ROOT "$ENV{COASTLINEDIR}/gshhg")
10
10
set (DCW_ROOT "$ENV{COASTLINEDIR}/dcw")
11
11
12
- set (GMT_USE_THREADS TRUE)
13
12
set (GMT_ENABLE_OPENMP TRUE)
14
13
15
14
# Always use the 'static' data server in CI.
@@ -21,6 +20,12 @@ set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement ${CMAKE_C_FLAGS}")
21
20
set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")
22
21
EOF
23
22
23
+ if [ " $EXCLUDE_OPTIONAL " = " true" ]; then
24
+ echo ' set (GMT_USE_THREADS TRUE)' >> cmake/ConfigUser.cmake
25
+ else
26
+ echo ' set (GMT_USE_THREADS FALSE)' >> cmake/ConfigUser.cmake
27
+ fi
28
+
24
29
# Set OpenMP_ROOT so that CMake can find the libomp header and library on macOS
25
30
if [[ " $RUNNER_OS " == " macOS" ]]; then
26
31
echo " set (OpenMP_ROOT $( brew --prefix) /opt/libomp/)" >> cmake/ConfigUser.cmake
You can’t perform that action at this time.
0 commit comments