8000 try cmake variable... · lineCode/opencv-python@bf5446f · GitHub
[go: up one dir, main page]

Skip to content

Commit bf5446f

Browse files
committed
try cmake variable...
1 parent 725aa6b commit bf5446f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +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='-mmacosx-version-min=10.7 -stdlib=libc++'")
140+
cmake_args.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=10.7")
141+
cmake_args.append("-DCMAKE_CXX_FLAGS='-stdlib=libc++'")
141142

142143
if sys.platform.startswith('linux'):
143144
cmake_args.append("-DWITH_IPP=OFF") # https://github.com/opencv/opencv/issues/10411

0 commit comments

Comments
 (0)
0