Commit 72d80536 authored by Davis King's avatar Davis King

Changed python cmake files so they always set fPIC even if the compiler isn't

GCC.
parent 5c78a9c3
......@@ -46,9 +46,8 @@ else()
INCLUDE_DIRECTORIES("${PYTHON_INCLUDE_DIRS}" )
endif()
if (CMAKE_COMPILER_IS_GNUCXX)
add_definitions("-fPIC")
endif()
set(CMAKE_POSITION_INDEPENDENT_CODE True)
# 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