Set -fPIC always

This commit is contained in:
Sandy Carter
2023-01-21 22:43:28 -05:00
parent fb50e78e49
commit 1c31493614

View File

@@ -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()