diff --git a/godot-git-plugin/thirdparty/libgit2/CMakeLists.txt b/godot-git-plugin/thirdparty/libgit2/CMakeLists.txt index 8264158..a55323b 100644 --- a/godot-git-plugin/thirdparty/libgit2/CMakeLists.txt +++ b/godot-git-plugin/thirdparty/libgit2/CMakeLists.txt @@ -43,6 +43,7 @@ INCLUDE(EnableWarnings) # Build options # +set(CMAKE_POSITION_INDEPENDENT_CODE ON) OPTION(SONAME "Set the (SO)VERSION of the target" ON) OPTION(BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON) OPTION(THREADSAFE "Build libgit2 as threadsafe" ON)