Skip to content

Commit 978a8bb

Browse files
fix: add missing macro definitions ggml-org#8281
Integrate it in comments for now Co-Authored-By: Natsu <[email protected]>
1 parent 6ddc173 commit 978a8bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,16 @@ if (LLAMA_LLAMAFILE)
443443
set(GGML_SOURCES_LLAMAFILE sgemm.cpp)
444444
endif()
445445

446+
#if (BUILD_SHARED_LIBS)
447+
# set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
448+
# target_compile_definitions(ggml PRIVATE GGML_SHARED GGML_BUILD)
449+
#endif()
450+
#
451+
#if (BUILD_SHARED_LIBS_DEFAULT)
452+
# set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
453+
# target_compile_definitions(ggml PRIVATE GGML_SHARED GGML_BUILD)
454+
#endif()
455+
446456
if (LLAMA_CCACHE)
447457
find_program(LLAMA_CCACHE_FOUND ccache)
448458
if (LLAMA_CCACHE_FOUND)

0 commit comments

Comments
 (0)