Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
470dfba9
Commit
470dfba9
authored
Mar 15, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: update CMake install rules
parent
de8eda5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
common.cmake
modules/python/common.cmake
+8
-4
standalone.cmake
modules/python/standalone.cmake
+3
-4
No files found.
modules/python/common.cmake
View file @
470dfba9
...
...
@@ -135,10 +135,14 @@ if(NOT OPENCV_SKIP_PYTHON_LOADER AND DEFINED OPENCV_PYTHON_INSTALL_PATH)
set
(
OPENCV_PYTHON_INSTALL_PATH_SETUPVARS
"
${
OPENCV_PYTHON_INSTALL_PATH
}
"
CACHE INTERNAL
""
)
endif
()
if
(
NOT
"
${
PYTHON
}
"
STREQUAL
" PYTHON"
AND DEFINED OPENCV_
${
PYTHON
}
_INSTALL_PATH
)
set
(
__python_binary_install_path
"
${
OPENCV_
${
PYTHON
}
_INSTALL_PATH
}
"
)
elseif
(
OPENCV_SKIP_PYTHON_LOADER AND DEFINED
${
PYTHON
}
_PACKAGES_PATH
)
set
(
__python_binary_install_path
"
${${
PYTHON
}
_PACKAGES_PATH
}
"
)
if
(
OPENCV_SKIP_PYTHON_LOADER
)
if
(
DEFINED OPENCV_
${
PYTHON
}
_INSTALL_PATH
)
set
(
__python_binary_install_path
"
${
OPENCV_
${
PYTHON
}
_INSTALL_PATH
}
"
)
elseif
(
DEFINED
${
PYTHON
}
_PACKAGES_PATH
)
set
(
__python_binary_install_path
"
${${
PYTHON
}
_PACKAGES_PATH
}
"
)
else
()
message
(
FATAL_ERROR
"Specify 'OPENCV_
${
PYTHON
}
_INSTALL_PATH' variable"
)
endif
()
else
()
ocv_assert
(
DEFINED OPENCV_PYTHON_INSTALL_PATH
)
set
(
__python_binary_install_path
"
${
OPENCV_PYTHON_INSTALL_PATH
}
/
${
__python_loader_subdir
}
python-
${${
PYTHON
}
_VERSION_MAJOR
}
.
${${
PYTHON
}
_VERSION_MINOR
}
"
)
...
...
modules/python/standalone.cmake
View file @
470dfba9
...
...
@@ -5,11 +5,10 @@ include("${OpenCV_BINARY_DIR}/opencv_python_config.cmake")
if
(
NOT DEFINED OpenCV_SOURCE_DIR
)
message
(
FATAL_ERROR
"Missing OpenCV_SOURCE_DIR"
)
endif
()
if
(
NOT OPENCV_PYTHON_INSTALL_PATH
)
if
(
NOT DEFINED OPENCV_PYTHON_STANDALONE_INSTALL_PATH
)
message
(
FATAL_ERROR
"Missing OPENCV_PYTHON_STANDALONE_INSTALL_PATH / OPENCV_PYTHON_INSTALL_PATH"
)
endif
()
if
(
DEFINED OPENCV_PYTHON_STANDALONE_INSTALL_PATH
)
set
(
OPENCV_PYTHON_INSTALL_PATH
"
${
OPENCV_PYTHON_STANDALONE_INSTALL_PATH
}
"
)
elseif
(
NOT OPENCV_PYTHON_INSTALL_PATH
)
message
(
FATAL_ERROR
"Missing OPENCV_PYTHON_STANDALONE_INSTALL_PATH / OPENCV_PYTHON_INSTALL_PATH"
)
endif
()
include
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/OpenCVUtils.cmake"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment