mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-27 08:46:20 +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
|
pfsimd_macros.h
|
||||||
)
|
)
|
||||||
|
|
||||||
# Let's make this a library - a static library
|
# Let's make this an object library so we don't deal with static library
|
||||||
add_library(pffft STATIC ${SOURCES})
|
# leftovers.
|
||||||
|
add_library(pffft OBJECT ${SOURCES})
|
||||||
|
|
||||||
# Yes, this is a hacky CMakeLists.txt
|
# Yes, this is a hacky CMakeLists.txt
|
||||||
target_include_Directories(pffft PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
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