From b8e1aded6752011d4486cce55eaa5a65e0a670f8 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sun, 26 Jul 2020 22:37:12 -0400 Subject: [PATCH] CMake: Remove threading config variables Using FindThreads and the Threads::Threads target directly was causing problems, and OpenMP seems to handle all this itself now. --- src/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ccc31949e..31cdda98f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -317,11 +317,6 @@ foreach(ff_comp IN LISTS all_comps) endforeach() -################### Threads #################### -# Threading library -- uses IMPORTED target Threads::Threads (since CMake 3.1) -set(CMAKE_THREAD_PREFER_PTHREAD TRUE) -set(THREADS_PREFER_PTHREAD_FLAG TRUE) - ################### OPENMP ##################### # Check for OpenMP (used for multi-core processing)