mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	Fix missing ggml link in cmake for examples/* on w64-mingw32 (#542)
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| set(TARGET embedding) | set(TARGET embedding) | ||||||
| add_executable(${TARGET} embedding.cpp) | add_executable(${TARGET} embedding.cpp) | ||||||
| target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) | target_link_libraries(${TARGET} PRIVATE common llama ggml ${CMAKE_THREAD_LIBS_INIT}) | ||||||
| target_compile_features(${TARGET} PRIVATE cxx_std_11) | target_compile_features(${TARGET} PRIVATE cxx_std_11) | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| set(TARGET main) | set(TARGET main) | ||||||
| add_executable(${TARGET} main.cpp) | add_executable(${TARGET} main.cpp) | ||||||
| target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) | target_link_libraries(${TARGET} PRIVATE common llama ggml ${CMAKE_THREAD_LIBS_INIT}) | ||||||
| target_compile_features(${TARGET} PRIVATE cxx_std_11) | target_compile_features(${TARGET} PRIVATE cxx_std_11) | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| set(TARGET perplexity) | set(TARGET perplexity) | ||||||
| add_executable(${TARGET} perplexity.cpp) | add_executable(${TARGET} perplexity.cpp) | ||||||
| target_link_libraries(${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT}) | target_link_libraries(${TARGET} PRIVATE common llama ggml ${CMAKE_THREAD_LIBS_INIT}) | ||||||
| target_compile_features(${TARGET} PRIVATE cxx_std_11) | target_compile_features(${TARGET} PRIVATE cxx_std_11) | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| set(TARGET quantize) | set(TARGET quantize) | ||||||
| add_executable(${TARGET} quantize.cpp) | add_executable(${TARGET} quantize.cpp) | ||||||
| target_link_libraries(${TARGET} PRIVATE llama ${CMAKE_THREAD_LIBS_INIT}) | target_link_libraries(${TARGET} PRIVATE llama ggml ${CMAKE_THREAD_LIBS_INIT}) | ||||||
| target_compile_features(${TARGET} PRIVATE cxx_std_11) | target_compile_features(${TARGET} PRIVATE cxx_std_11) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Marco Matthies
					Marco Matthies