Allow overriding CMAKE_POSITION_INDEPENDENT_CODE from command line
MIPS EABI that is used for i.a. psp doesn't support PIC, so we need
to disable it when compiling PSP version
@@ -119,7 +119,9 @@ endif()
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
+if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+endif()
if(MSVC)
