mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-26 16:26:25 +02:00
pffft: Fix linkage on some systems
- Make pffft an object library instead - Enable position independent code for pffft Signed-off-by: Avery King <avery98@pm.me>
This commit is contained in:
@@ -13,8 +13,12 @@ set(SOURCES
|
||||
pfsimd_macros.h
|
||||
)
|
||||
|
||||
# Let's make this a library - a static library
|
||||
add_library(pffft STATIC ${SOURCES})
|
||||
# Let's make this an object library so we don't deal with static library
|
||||
# leftovers.
|
||||
add_library(pffft OBJECT ${SOURCES})
|
||||
|
||||
# Yes, this is a hacky CMakeLists.txt
|
||||
target_include_Directories(pffft PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
# Set this or the build could fail on some systems otherwise.
|
||||
set_target_properties(pffft PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
|
Reference in New Issue
Block a user