Commit 7f1114d9 authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: disable HAVE_POSIX_SEMAPHORES on Apple platform

parent d1e7a7e0
......@@ -6,9 +6,12 @@
project(openexr CXX)
if(UNIX)
set(HAVE_PTHREAD 1)
if(APPLE)
set(HAVE_POSIX_SEMAPHORES 0) # Unnamed semaphores are not supported: https://github.com/opencv/opencv/issues/9361
else()
include(CheckIncludeFile)
check_include_file(semaphore.h HAVE_POSIX_SEMAPHORES)
endif()
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/IlmBaseConfig.h.cmakein"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment