find threads directly on the project not by ecbuild

This commit is contained in:
Shahram Najm 2013-12-23 15:50:47 +00:00
parent 086d17a886
commit 78802d4661
1 changed files with 3 additions and 0 deletions

View File

@ -134,6 +134,9 @@ if( ENABLE_MEMORY_MANAGEMENT )
set( MANAGE_MEM 1 )
endif()
set( CMAKE_THREAD_PREFER_PTHREAD 1 ) # find thread library, but prefer pthreads
find_package(Threads REQUIRED)
set( GRIB_PTHREADS 0 )
set( GRIB_LINUX_PTHREADS 0 )
if( GRIB_THREADS AND CMAKE_THREAD_LIBS_INIT )