|
@@ -281,21 +281,25 @@ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
281
|
281
|
if (LEMMA_USE_OPENMP)
|
282
|
282
|
|
283
|
283
|
if(APPLE)
|
284
|
|
- if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
285
|
|
- set(OpenMP_C "${CMAKE_C_COMPILER}")
|
286
|
|
- set(OpenMP_C_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument")
|
287
|
|
- set(OpenMP_C_LIB_NAMES "libomp" "libgomp" "libiomp5")
|
288
|
|
- set(OpenMP_libomp_LIBRARY ${OpenMP_C_LIB_NAMES})
|
289
|
|
- set(OpenMP_libgomp_LIBRARY ${OpenMP_C_LIB_NAMES})
|
290
|
|
- set(OpenMP_libiomp5_LIBRARY ${OpenMP_C_LIB_NAMES})
|
291
|
|
- endif()
|
|
284
|
+ #if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
285
|
+ # set(OpenMP_C "${CMAKE_C_COMPILER}")
|
|
286
|
+ # set(OpenMP_C_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument")
|
|
287
|
+ # set(OpenMP_C_LIB_NAMES "libomp" "libgomp" "libiomp5")
|
|
288
|
+ # set(OpenMP_libomp_LIBRARY ${OpenMP_C_LIB_NAMES})
|
|
289
|
+ # set(OpenMP_libgomp_LIBRARY ${OpenMP_C_LIB_NAMES})
|
|
290
|
+ # set(OpenMP_libiomp5_LIBRARY ${OpenMP_C_LIB_NAMES})
|
|
291
|
+ #endif()
|
292
|
292
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
293
|
+ find_library( libiomp5 NAMES libiomp5.dylib PATHS "/anaconda3/lib/" REQUIRED )
|
293
|
294
|
set(OpenMP_CXX "${CMAKE_CXX_COMPILER}")
|
294
|
|
- set(OpenMP_CXX_FLAGS "-fopenmp=libomp -Wno-unused-command-line-argument")
|
295
|
|
- set(OpenMP_CXX_LIB_NAMES "libomp" "libgomp" "libiomp5")
|
296
|
|
- set(OpenMP_libomp_LIBRARY ${OpenMP_CXX_LIB_NAMES})
|
297
|
|
- set(OpenMP_libgomp_LIBRARY ${OpenMP_CXX_LIB_NAMES})
|
298
|
|
- set(OpenMP_libiomp5_LIBRARY ${OpenMP_CXX_LIB_NAMES})
|
|
295
|
+ set(OpenMP_CXX_FLAGS "-fopenmp=libiomp5 -Wno-unused-command-line-argument")
|
|
296
|
+ set(OpenMP_CXX_LIB_NAMES "libiomp5") #"libomp" "libgomp" "libiomp5")
|
|
297
|
+ #set(OpenMP_libomp_LIBRARY ${OpenMP_CXX_LIB_NAMES})
|
|
298
|
+ #set(OpenMP_libgomp_LIBRARY ${OpenMP_CXX_LIB_NAMES})
|
|
299
|
+ set(OpenMP_libiomp5_LIBRARY libiomp5 )# ${OpenMP_CXX_LIB_NAMES})
|
|
300
|
+ set(OpenMP_LIBRARIES libiomp5)
|
|
301
|
+ link_directories("/anaconda3/lib")
|
|
302
|
+ # find_package(OpenMP REQUIRED)
|
299
|
303
|
# set(OpenMP_CXX_FLAGS "-Xpreprocessor -fopenmp -I/usr/local/opt/libomp/include")
|
300
|
304
|
# " -DOpenMP_CXX_LIB_NAMES=\"omp\" -DOpenMP_omp_LIBRARY=/usr/local/opt/libomp/lib/libomp.dylib ")
|
301
|
305
|
# set(OpenMP_CXX_LIB_NAMES "omp") # "libgomp" "libiomp5")
|