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
30807b26
Commit
30807b26
authored
Nov 18, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7644 from alalek:cmake_python_install
parents
12569dc7
edcbc15a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
common.cmake
modules/python/common.cmake
+14
-12
No files found.
modules/python/common.cmake
View file @
30807b26
...
...
@@ -132,13 +132,8 @@ endif()
if
(
NOT INSTALL_CREATE_DISTRIB AND DEFINED
${
PYTHON
}
_PACKAGES_PATH
)
set
(
__dst
"
${${
PYTHON
}
_PACKAGES_PATH
}
"
)
install
(
TARGETS
${
the_module
}
OPTIONAL
${
PYTHON_INSTALL_CONFIGURATIONS
}
RUNTIME DESTINATION
"
${
__dst
}
"
COMPONENT python
LIBRARY DESTINATION
"
${
__dst
}
"
COMPONENT python
${
PYTHON_INSTALL_ARCHIVE
}
)
else
()
endif
()
if
(
NOT __dst
)
if
(
DEFINED
${
PYTHON
}
_VERSION_MAJOR
)
set
(
__ver
"
${${
PYTHON
}
_VERSION_MAJOR
}
.
${${
PYTHON
}
_VERSION_MINOR
}
"
)
elseif
(
DEFINED
${
PYTHON
}
_VERSION_STRING
)
...
...
@@ -146,13 +141,20 @@ else()
else
()
set
(
__ver
"unknown"
)
endif
()
i
nstall
(
TARGETS
${
the_module
}
CONFIGURATIONS Release
RUNTIME DESTINATION python/
${
__ver
}
/
${
OpenCV_ARCH
}
COMPONENT python
LIBRARY DESTINATION python/
${
__ver
}
/
${
OpenCV_ARCH
}
COMPONENT python
)
i
f
(
INSTALL_CREATE_DISTRIB
)
set
(
__dst
"python/
${
__ver
}
/
${
OpenCV_ARCH
}
"
)
else
()
set
(
__dst
"python/
${
__ver
}
"
)
endif
(
)
endif
()
install
(
TARGETS
${
the_module
}
${
PYTHON_INSTALL_CONFIGURATIONS
}
RUNTIME DESTINATION
"
${
__dst
}
"
COMPONENT python
LIBRARY DESTINATION
"
${
__dst
}
"
COMPONENT python
${
PYTHON_INSTALL_ARCHIVE
}
)
unset
(
PYTHON_SRC_DIR
)
unset
(
PYTHON_CVPY_PROCESS
)
unset
(
CVPY_SUFFIX
)
...
...
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