From 11c1979fe2f6ff27e7637dd4958ceef09d8fac7d Mon Sep 17 00:00:00 2001 From: BLUELOVETH Date: Thu, 3 Aug 2023 13:06:09 +0800 Subject: [PATCH] ... --- 3rd/box2d/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/3rd/box2d/CMakeLists.txt b/3rd/box2d/CMakeLists.txt index 3fba315b..42641059 100644 --- a/3rd/box2d/CMakeLists.txt +++ b/3rd/box2d/CMakeLists.txt @@ -14,6 +14,9 @@ aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/src/rope BOX2D_SRC_3) set(CMAKE_CXX_FLAGS_RELEASE "-O2") +# may need this for linking to shared object +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + add_library( box2d STATIC