Skip to content

Commit 358097f

Browse files
committed
try another flag
1 parent 6093cc6 commit 358097f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ def main():
140140
cmake_args.append("-DCMAKE_CXX_FLAGS=-stdlib=libc++")
141141
cmake_args.append("-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.8")
142142

143+
if sys.platform == 'darwin' and build_contrib:
144+
# see: https://github.com/opencv/opencv_contrib/issues/1388#issuecomment-354403896
145+
cmake_args.append("-DENABLE_PRECOMPILED_HEADERS=OFF")
146+
143147
if sys.platform.startswith('linux'):
144148
cmake_args.append("-DWITH_IPP=OFF") # tests fail with IPP compiled with
145149
# devtoolset-2 GCC 4.8.2 or vanilla GCC 4.9.4

0 commit comments

Comments
 (0)