Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
4bbfe512
Commit
4bbfe512
authored
Mar 07, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the PYTHON3 cmake switch a proper cmake option.
parent
ac07cffa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
add_python_module
dlib/add_python_module
+1
-3
CMakeLists.txt
tools/python/CMakeLists.txt
+0
-4
No files found.
dlib/add_python_module
View file @
4bbfe512
...
@@ -11,11 +11,9 @@
...
@@ -11,11 +11,9 @@
# python module to that folder when you run "make install". Note that the path
# python module to that folder when you run "make install". Note that the path
# given to install_*_to() is relative to your CMakeLists.txt file.
# given to install_*_to() is relative to your CMakeLists.txt file.
#
#
# Also note that if you set the cmake variable PYTHON3 equal to any non-zero
# value then we will try and produce a Python 3 compatible library, otherwise
# we will make a Pyhton 2 library.
option(PYTHON3 "Build a Python3 compatible library rather than Python2." OFF)
#SET(Boost_USE_STATIC_LIBS OFF)
#SET(Boost_USE_STATIC_LIBS OFF)
...
...
tools/python/CMakeLists.txt
View file @
4bbfe512
...
@@ -2,10 +2,6 @@
...
@@ -2,10 +2,6 @@
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.4
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8.4
)
# Uncomment this to make a Python 3 compatible library instead of a Python 2
# library.
#set(PYTHON3 true)
include
(
../../dlib/add_python_module
)
include
(
../../dlib/add_python_module
)
# Tell cmake to compile all these cpp files into a dlib python module.
# Tell cmake to compile all these cpp files into a dlib python module.
...
...
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