Skip to content

Commit

Permalink
CMake: Remove threading config variables
Browse files Browse the repository at this point in the history
Using FindThreads and the Threads::Threads target directly was
causing problems, and OpenMP seems to handle all this itself now.
  • Loading branch information
ferdnyc committed Jul 27, 2020
1 parent 6638f41 commit b8e1ade
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/CMakeLists.txt
Expand Up @@ -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)

Expand Down

0 comments on commit b8e1ade

Please sign in to comment.