diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c44d3f..4591324 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,12 +64,10 @@ find_package(Threads) if (${IS_GNU} OR ${IS_CLANG}) set(THREADS_PREFER_PTHREAD_FLAG TRUE) if (Threads_FOUND AND NOT MINGW) - if (NOT ("${CMAKE_EXE_LINKER_FLAGS}" MATCHES -static)) - include(FindOpenMP) - if (OpenMP_CXX_FOUND) - set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}") - add_definitions(-D_GLIBCXX_PARALLEL) - endif() + include(FindOpenMP) + if (OpenMP_CXX_FOUND) + set(CMAKE_CXX_FLAGS "${OpenMP_CXX_FLAGS} ${CMAKE_CXX_FLAGS}") + add_definitions(-D_GLIBCXX_PARALLEL) endif() endif() if (NOT DEFINED EMSCRIPTEN)