Skip to content

Commit b7ff13b

Browse files
committed
Merge pull request opencv#9368 from alalek:fix_9361
2 parents 1927010 + 7f1114d commit b7ff13b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

3rdparty/openexr/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
project(openexr CXX)
77

88
if(UNIX)
9-
set(HAVE_PTHREAD 1)
10-
include(CheckIncludeFile)
11-
check_include_file(semaphore.h HAVE_POSIX_SEMAPHORES)
9+
if(APPLE)
10+
set(HAVE_POSIX_SEMAPHORES 0) # Unnamed semaphores are not supported: https://github.com/opencv/opencv/issues/9361
11+
else()
12+
include(CheckIncludeFile)
13+
check_include_file(semaphore.h HAVE_POSIX_SEMAPHORES)
14+
endif()
1215
endif()
1316

1417
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/IlmBaseConfig.h.cmakein"

0 commit comments

Comments
 (0)