File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,13 @@ option(SAF_USE_FFTW "Use FFTW3 for the FFT."
16
16
option (SAF_ENABLE_SIMD "Enable the use of SSE3, AVX2, AVX512" OFF )
17
17
option (SAF_ENABLE_NETCDF "Enable netcdf for the sofa reader module" OFF )
18
18
option (SAF_USE_FAST_MATH_FLAG "Enable -ffast-math compiler flag" ON )
19
- if (NOT SAF_PERFORMANCE_LIB)
20
- set (SAF_PERFORMANCE_LIB "SAF_USE_INTEL_MKL_LP64" CACHE STRING "Performance library for SAF to use. " )
19
+ if (NOT DEFINED SAF_PERFORMANCE_LIB AND NOT APPLE )
20
+ message (FATAL_ERROR "You must define the SAF_PERFORMANCE_LIB environment variable " )
21
21
endif ()
22
- #message(STATUS "PERFORMACE LIB is ${SAF_PERFORMANCE_LIB}")
22
+ if (NOT DEFINED SAF_PERFORMANCE_LIB AND APPLE )
23
+ set (SAF_PERFORMANCE_LIB "SAF_USE_APPLE_ACCELERATE" )
24
+ endif ()
25
+ #message(STATUS "PERFORMANCE LIB is ${SAF_PERFORMANCE_LIB}")
23
26
if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "" )
24
27
set (CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
25
28
endif ()
@@ -40,6 +43,8 @@ if(MSVC)
40
43
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP" )
41
44
elseif (APPLE )
42
45
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++" )
46
+ set (CMAKE_OSX_ARCHITECTURES "arm64;x86_64" )
47
+ set (CMAKE_OSX_DEPLOYMENT_TARGET "11.0" )
43
48
elseif (UNIX AND NOT APPLE AND NOT ANDROID)
44
49
add_definitions (
45
50
#-std=c++11
You can’t perform that action at this time.
0 commit comments