File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,8 @@ target_compile_features(${TARGET} PRIVATE cxx_std_17)
66if (LLAMA_TOOLS_INSTALL)
77 install (TARGETS ${TARGET} RUNTIME)
88endif ()
9+
10+ if (CMAKE_SYSTEM_NAME MATCHES "AIX" )
11+ # AIX's flock() function comes from libbsd.a
12+ target_link_libraries (${TARGET} PRIVATE -lbsd)
13+ endif ()
Original file line number Diff line number Diff line change @@ -13,5 +13,11 @@ endif ()
1313if (LLAMA_TOOLS_INSTALL)
1414 install (TARGETS ${TARGET} RUNTIME)
1515endif ()
16+
17+ if (CMAKE_SYSTEM_NAME MATCHES "AIX" )
18+ # AIX's flock() function comes from libbsd.a
19+ target_link_libraries (${TARGET} PRIVATE -lbsd)
20+ endif ()
21+
1622target_link_libraries (${TARGET} PRIVATE common llama ${CMAKE_THREAD_LIBS_INIT} ${LLAMA_RUN_EXTRA_LIBS} )
1723target_compile_features (${TARGET} PRIVATE cxx_std_17)
You can’t perform that action at this time.
0 commit comments