Skip to content

Commit a349d48

Browse files
authored
Merge pull request #2636 from martin-frbg/issue2634
Fix CMAKE build Issues on OS X
2 parents e79245a + 4db0012 commit a349d48

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ option(BUILD_WITHOUT_CBLAS "Do not build the C interface (CBLAS) to the BLAS fun
2323
option(DYNAMIC_ARCH "Include support for multiple CPU targets, with automatic selection at runtime (x86/x86_64, aarch64 or ppc only)" OFF)
2424
option(DYNAMIC_OLDER "Include specific support for older x86 cpu models (Penryn,Dunnington,Atom,Nano,Opteron) with DYNAMIC_ARCH" OFF)
2525
option(BUILD_RELAPACK "Build with ReLAPACK (recursive implementation of several LAPACK functions on top of standard LAPACK)" OFF)
26+
option(USE_LOCKING "Use locks even in single-threaded builds to make them callable from multiple threads" OFF)
2627
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
2728
option(NO_AFFINITY "Disable support for CPU affinity masks to avoid binding processes from e.g. R or numpy/scipy to a single core" ON)
2829
else()

cmake/os.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
88
set(NO_EXPRECISION 1)
99
endif ()
1010

11-
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly")
11+
if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly|Darwin")
1212
set(EXTRALIB "${EXTRALIB} -lm")
1313
set(NO_EXPRECISION 1)
1414
endif ()

0 commit comments

Comments
 (0)