From c9ae759b245a9ceac288e8f937928efa1c836eb6 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 22 Nov 2023 06:36:28 +0800 Subject: [PATCH] ... --- 3rd/box2d/CMakeLists.txt | 2 ++ 3rd/cjson/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/3rd/box2d/CMakeLists.txt b/3rd/box2d/CMakeLists.txt index 9bb923b6..e98e7298 100644 --- a/3rd/box2d/CMakeLists.txt +++ b/3rd/box2d/CMakeLists.txt @@ -20,6 +20,8 @@ else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -O2") endif() +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + add_library( box2d STATIC diff --git a/3rd/cjson/CMakeLists.txt b/3rd/cjson/CMakeLists.txt index b0efd310..748f1553 100644 --- a/3rd/cjson/CMakeLists.txt +++ b/3rd/cjson/CMakeLists.txt @@ -16,6 +16,8 @@ else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -O2") endif() +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + add_library( cjson STATIC