Skip to content

Commit e3b8c9e

Browse files
ykhrustalevarthw
authored andcommitted
cmake : make it possible linking ggml as external lib (ggml/1003)
1 parent e6098d7 commit e3b8c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ if (EMSCRIPTEN)
13961396
endif()
13971397

13981398
target_compile_definitions(ggml PUBLIC ${GGML_CDEF_PUBLIC})
1399-
target_include_directories(ggml PUBLIC ../include)
1399+
target_include_directories(ggml PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include> $<INSTALL_INTERFACE:include>)
14001400
target_include_directories(ggml PRIVATE . ${GGML_EXTRA_INCLUDES})
14011401
target_link_directories (ggml PRIVATE ${GGML_EXTRA_LIBDIRS})
14021402
target_compile_features (ggml PRIVATE c_std_11) # don't bump

0 commit comments

Comments
 (0)