Skip to content

Commit 6f23ad1

Browse files
committed
fPIC
1 parent 4a8c092 commit 6f23ad1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/mtmd/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
# compile mtmd-audio separately to avoid long compile times
44
add_library(mtmd_audio STATIC mtmd-audio.cpp mtmd-audio.h)
5+
if (BUILD_SHARED_LIBS)
6+
set_target_properties(mtmd_audio PROPERTIES POSITION_INDEPENDENT_CODE ON)
7+
endif()
58
target_link_libraries(mtmd_audio PRIVATE ggml ${CMAKE_THREAD_LIBS_INIT})
69
target_compile_features(mtmd_audio PRIVATE cxx_std_17)
710
target_include_directories(mtmd_audio PRIVATE .)

0 commit comments

Comments
 (0)