diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index 8b2b54f81..db4b239f0 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -201,9 +201,9 @@ if(CMAKE_COMPILER_IS_GNUCXX) add_extra_compiler_option(-mpopcnt) endif() endif() - if((X86 OR X86_64) AND NOT MSVC) + if((X86 OR X86_64) AND NOT MSVC AND NOT APPLE) add_extra_compiler_option(-mf16c) - endif((X86 OR X86_64) AND NOT MSVC) + endif((X86 OR X86_64) AND NOT MSVC AND NOT APPLE) endif(NOT MINGW) if(X86 OR X86_64)