6990e2f1f7
* cmake : allow libcommon to be shared * cmake : rename libcommon to libllama-common * cont : set -fPIC for httplib * cont : export all symbols * cont : fix build_info exports * libs : add libllama-common-base * log : add common_log_get_verbosity_thold()
14 lines
422 B
CMake
14 lines
422 B
CMake
set(TARGET llama-imatrix)
|
|
add_executable(${TARGET} imatrix.cpp)
|
|
target_link_libraries(${TARGET} PRIVATE llama-common llama ${CMAKE_THREAD_LIBS_INIT})
|
|
target_compile_features(${TARGET} PRIVATE cxx_std_17)
|
|
|
|
if(LLAMA_TOOLS_INSTALL)
|
|
install(TARGETS ${TARGET} RUNTIME)
|
|
endif()
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "AIX")
|
|
# AIX's flock() function comes from libbsd.a
|
|
target_link_libraries(${TARGET} PRIVATE -lbsd)
|
|
endif()
|