Commit 5e9052d4 authored by Davis King's avatar Davis King

Slightly changed cmake file to make sure the python binding is always compiled

with -fPIC.
parent ae48b2eb
......@@ -48,6 +48,11 @@ 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)
add_definitions("-fPIC")
endif()
# include dlib so we can link against it
string(REGEX REPLACE "add_python_module$" "" dlib_path ${CMAKE_CURRENT_LIST_FILE})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment