mirror of https://github.com/ecmwf/eccodes.git
find threads directly on the project not by ecbuild
This commit is contained in:
parent
086d17a886
commit
78802d4661
|
@ -134,6 +134,9 @@ if( ENABLE_MEMORY_MANAGEMENT )
|
||||||
set( MANAGE_MEM 1 )
|
set( MANAGE_MEM 1 )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set( CMAKE_THREAD_PREFER_PTHREAD 1 ) # find thread library, but prefer pthreads
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
set( GRIB_PTHREADS 0 )
|
set( GRIB_PTHREADS 0 )
|
||||||
set( GRIB_LINUX_PTHREADS 0 )
|
set( GRIB_LINUX_PTHREADS 0 )
|
||||||
if( GRIB_THREADS AND CMAKE_THREAD_LIBS_INIT )
|
if( GRIB_THREADS AND CMAKE_THREAD_LIBS_INIT )
|
||||||
|
|
Loading…
Reference in New Issue