15 lines
551 B
Diff
15 lines
551 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 0c30c55..26336a1 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -202,7 +202,8 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
||
|
endif()
|
||
|
|
||
|
# On BSD and Linux, always build with PIC.
|
||
|
-if(${CMAKE_SYSTEM_NAME} MATCHES ".*BSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||
|
+if(${CMAKE_SYSTEM_NAME} MATCHES ".*BSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
|
||
|
+ CMAKE_SYSTEM_NAME STREQUAL Android)
|
||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||
|
endif ()
|