File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 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."
1616option (SAF_ENABLE_SIMD "Enable the use of SSE3, AVX2, AVX512" OFF )
1717option (SAF_ENABLE_NETCDF "Enable netcdf for the sofa reader module" OFF )
1818option (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 " )
2121endif ()
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}")
2326if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "" )
2427 set (CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
2528endif ()
@@ -40,6 +43,8 @@ if(MSVC)
4043 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP" )
4144elseif (APPLE )
4245 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" )
4348elseif (UNIX AND NOT APPLE AND NOT ANDROID)
4449 add_definitions (
4550 #-std=c++11
You can’t perform that action at this time.
0 commit comments