Skip to content

Commit d75ac7a

Browse files
committed
add -std=c++11
1 parent 63deb1f commit d75ac7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ def main():
137137
if sys.platform == 'darwin':
138138
cmake_args.append("-DWITH_LAPACK=OFF") # Some OSX LAPACK fns are incompatible, see
139139
# https://github.com/skvark/opencv-python/issues/21
140+
cmake_args.append("-DCMAKE_CXX_FLAGS=-std=c++11") # enable c++11 explicitly for clang
141+
140142
if sys.platform.startswith('linux'):
141143
cmake_args.append("-DWITH_IPP=OFF") # https://github.com/opencv/opencv/issues/10411
142144

0 commit comments

Comments
 (0)