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
8e2ec4cc
Commit
8e2ec4cc
authored
Aug 23, 2015
by
Ehsan Azarnasab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
option to pass build system generator to cmake
parent
2f7958e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
setup.py
setup.py
+9
-0
No files found.
setup.py
View file @
8e2ec4cc
...
...
@@ -19,6 +19,7 @@ To exclude/include certain options in the cmake config use --yes and --no:
Additional options:
--debug: makes a debug build
--cmake: path to specific cmake executable
--G or -G: name of a build system generator (equivalent of passing -G "name" to cmake)
"""
from
__future__
import
print_function
...
...
@@ -72,12 +73,20 @@ def _get_options():
_cmake_extra
.
append
(
'-D{arg}=yes'
.
format
(
arg
=
arg
.
trim
()))
elif
opt_key
==
'no'
:
_cmake_extra
.
append
(
'-D{arg}=no'
.
format
(
arg
=
arg
.
trim
()))
elif
opt_key
==
'G'
:
_cmake_extra
.
append
(
'-G {gen}'
.
format
(
gen
=
arg
.
trim
()))
if
opt_key
:
sys
.
argv
.
remove
(
arg
)
opt_key
=
None
continue
# Keep -G to resemble cmake's
if
arg
==
'-G'
or
arg
.
lower
()
==
'--g'
:
opt_key
=
'G'
sys
.
argv
.
remove
(
arg
)
continue
if
not
arg
.
startswith
(
'--'
):
continue
...
...
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