1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 73d5c3c84..e4b0dbfd1 100644
5 @@ -104,13 +104,6 @@ option(SOUFFLE_CUSTOM_GETOPTLONG "Enable/Disable custom getopt_long implementati
6 cmake_dependent_option(SOUFFLE_USE_LIBCPP "Link to libc++ instead of libstdc++" ON
7 "CMAKE_CXX_COMPILER_ID STREQUAL Clang" OFF)
9 -# Using Clang? Likely want to use `lld` too.
10 -if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
11 - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld")
12 - set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -fuse-ld=lld")
13 - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=lld")
16 # Add aditional modules to CMake
17 set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
19 @@ -247,7 +240,11 @@ endif()
21 # --------------------------------------------------
22 set(THREADS_PREFER_PTHREAD_FLAG ON)
23 -find_package(Threads REQUIRED)
24 +set(CMAKE_THREAD_LIBS_INIT "-lpthread")
25 +set(CMAKE_HAVE_THREADS_LIBRARY 1)
26 +set(CMAKE_USE_WIN32_THREADS_INIT 0)
27 +set(CMAKE_USE_PTHREADS_INIT 1)
28 +set(THREADS_PREFER_PTHREAD_FLAG ON)
30 # --------------------------------------------------