mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 21:40:42 +00:00
Build components with position independent code only for Android
openmw is build as shared library with position independent code enabled there so linked static libraries need to have this too.
This commit is contained in:
parent
e9c672b297
commit
efbc37d22f
@ -526,11 +526,9 @@ if (USE_QT)
|
||||
QT_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
||||
endif()
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
|
||||
add_definitions(-fPIC)
|
||||
endif()
|
||||
endif ()
|
||||
if (ANDROID)
|
||||
set_property(TARGET components PROPERTY POSTION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
|
||||
include_directories(${BULLET_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user