We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ca1f8 commit a602476Copy full SHA for a602476
src/Native/MatrixFactorizationNative/CMakeLists.txt
@@ -8,7 +8,12 @@ include_directories(libmf)
8
if(UNIX)
9
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O3 -pthread -std=c++0x -march=native")
10
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fopenmp")
11
+ if (APPLE)
12
+ include_directories("/usr/local/opt/libomp/include")
13
+ link_directories("/usr/local/opt/libomp/lib")
14
+ endif()
15
endif()
16
+
17
if(WIN32)
18
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /nologo /O2 /EHsc /D \"_CRT_SECURE_NO_DEPRECATE\" /openmp")
19
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
src/Native/MatrixFactorizationNative/libmf
0 commit comments