diff --git a/CMakeLists.txt b/CMakeLists.txt index dceb38b..d81593e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,9 +72,7 @@ if(BGFX_CMAKE_USER_SCRIPT) include(${BGFX_CMAKE_USER_SCRIPT}) endif() -if(BGFX_LIBRARY_TYPE MATCHES "STATIC") - set(CMAKE_POSITION_INDEPENDENT_CODE ON) -endif() +set(CMAKE_POSITION_INDEPENDENT_CODE ON) if(BGFX_BUILD_TESTS) enable_testing()