Skip to content

Commit

Permalink
fix: tentative: always enable threads to build examples as it is need…
Browse files Browse the repository at this point in the history
…ed for blosc2.

Signed-off-by: Philippe Leprince <[email protected]>
  • Loading branch information
pleprince committed Apr 5, 2024
1 parent a887716 commit 688d0d6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cmake/OpenEXRConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@

include(CMakeFindDependencyMacro)

set(openexr_needthreads @OPENEXR_ENABLE_THREADING@)
if (openexr_needthreads)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_dependency(Threads)
endif()
unset(openexr_needthreads)
# blosc2 needs threads, so we set it irrespective of OPENEXR_ENABLE_THREADING
# which enables threaded processing of requests.
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_dependency(Threads)

find_dependency(Imath)

Expand Down

0 comments on commit 688d0d6

Please sign in to comment.