]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
cmake : fix public header path for submodules (#342)
authorAndrei <redacted>
Tue, 4 Jul 2023 19:53:42 +0000 (15:53 -0400)
committerGitHub <redacted>
Tue, 4 Jul 2023 19:53:42 +0000 (22:53 +0300)
src/CMakeLists.txt

index ade423c9ccbfa1a96fcbd20a9112c3c9929b15fd..22e02590f5756a62d9a8e75c01eda3db1fc57b3f 100644 (file)
@@ -260,7 +260,7 @@ if (GGML_CUDA_SOURCES)
     target_link_libraries(ggml PUBLIC stdc++)
 endif()
 
-set (GGML_PUBLIC_HEADERS ${CMAKE_SOURCE_DIR}/include/ggml/ggml.h)
+set (GGML_PUBLIC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/../include/ggml/ggml.h)
 set_target_properties(${TARGET} PROPERTIES
                       PUBLIC_HEADER "${GGML_PUBLIC_HEADERS}")