Skip to content

Commit c966038

Browse files
committed
add -std=c++11
1 parent 358097f commit c966038

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def main():
141141
cmake_args.append("-DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.8")
142142

143143
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")
144+
cmake_args.append("-DCMAKE_CXX_FLAGS=-stdlib=libc++ -std=c++11")
146145

147146
if sys.platform.startswith('linux'):
148147
cmake_args.append("-DWITH_IPP=OFF") # tests fail with IPP compiled with

0 commit comments

Comments
 (0)