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