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
05d7aa88
Commit
05d7aa88
authored
Oct 14, 2014
by
Davis King
Browse files
cleaned up cmake code slightly
parent
5e9052d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
dlib/add_python_module
dlib/add_python_module
+5
-3
No files found.
dlib/add_python_module
View file @
05d7aa88
...
...
@@ -47,11 +47,13 @@ else()
endif()
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)
# 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.
add_definitions("-fPIC")
else()
set(CMAKE_POSITION_INDEPENDENT_CODE True)
endif()
# include dlib so we can link against it
...
...
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