Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
5e9052d4
Commit
5e9052d4
authored
Oct 14, 2014
by
Davis King
Browse files
Slightly changed cmake file to make sure the python binding is always compiled
with -fPIC.
parent
ae48b2eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
dlib/add_python_module
dlib/add_python_module
+5
-0
No files found.
dlib/add_python_module
View file @
5e9052d4
...
@@ -48,6 +48,11 @@ endif()
...
@@ -48,6 +48,11 @@ endif()
set(CMAKE_POSITION_INDEPENDENT_CODE True)
set(CMAKE_POSITION_INDEPENDENT_CODE True)
# Just setting CMAKE_POSITION_INDEPENDENT_CODE should be enough to set -fPIC
# for GCC but sometimes it still doesn't get set, so make sure it does.
if (CMAKE_COMPILER_IS_GNUCXX)
add_definitions("-fPIC")
endif()
# include dlib so we can link against it
# include dlib so we can link against it
string(REGEX REPLACE "add_python_module$" "" dlib_path ${CMAKE_CURRENT_LIST_FILE})
string(REGEX REPLACE "add_python_module$" "" dlib_path ${CMAKE_CURRENT_LIST_FILE})
...
...
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