Skip to content

Commit 9c34bfd

Browse files
authored
Revert 7e53955 (#542) and fix properly
Link 'common' to 'ggml' and not to examples as instructed
1 parent 7e53955 commit 9c34bfd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ add_library(ggml OBJECT
229229

230230
target_include_directories(ggml PUBLIC .)
231231
target_compile_features(ggml PUBLIC c_std_11) # don't bump
232-
target_link_libraries(ggml PRIVATE Threads::Threads ${LLAMA_EXTRA_LIBS})
232+
target_link_libraries(ggml PRIVATE common Threads::Threads ${LLAMA_EXTRA_LIBS})
233233
if (BUILD_SHARED_LIBS)
234234
set_target_properties(ggml PROPERTIES POSITION_INDEPENDENT_CODE ON)
235235
endif()

examples/embedding/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
set(TARGET embedding)
22
add_executable(${TARGET} embedding.cpp)
3-
target_link_libraries(${TARGET} PRIVATE common llama ggml ${CMAKE_THREAD_LIBS_INIT})
3+
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
44
target_compile_features(${TARGET} PRIVATE cxx_std_11)

examples/main/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
set(TARGET main)
22
add_executable(${TARGET} main.cpp)
3-
target_link_libraries(${TARGET} PRIVATE common llama ggml ${CMAKE_THREAD_LIBS_INIT})
3+
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
44
target_compile_features(${TARGET} PRIVATE cxx_std_11)

examples/perplexity/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
set(TARGET perplexity)
22
add_executable(${TARGET} perplexity.cpp)
3-
target_link_libraries(${TARGET} PRIVATE common llama ggml ${CMAKE_THREAD_LIBS_INIT})
3+
target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT})
44
target_compile_features(${TARGET} PRIVATE cxx_std_11)

examples/quantize/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
set(TARGET quantize)
22
add_executable(${TARGET} quantize.cpp)
3-
target_link_libraries(${TARGET} PRIVATE llama ggml ${CMAKE_THREAD_LIBS_INIT})
3+
target_link_libraries(${TARGET} PRIVATE llama ${CMAKE_THREAD_LIBS_INIT})
44
target_compile_features(${TARGET} PRIVATE cxx_std_11)

0 commit comments

Comments
 (0)