do not link OpenMP lib

This commit is contained in:
Attila Afra
2018-07-13 00:44:57 +03:00
parent 9d5d020931
commit 6b1a8fa7c0
+2 -2
View File
@@ -89,8 +89,8 @@ endif()
if(UNIX OR APPLE OR MINGW)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# Link Intel libraries statically (except for iomp5)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -liomp5 -static-intel")
# Link Intel libraries statically
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-intel")
# Tell linker to not complain about missing static libraries
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -diag-disable:10237")
endif()