]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : reorganize includes to prioritize vendored deps (#18222)
authorAldehir Rojas <redacted>
Sun, 21 Dec 2025 03:43:21 +0000 (21:43 -0600)
committerGitHub <redacted>
Sun, 21 Dec 2025 03:43:21 +0000 (21:43 -0600)
common/CMakeLists.txt

index 0182767c2b329e83514516b87bbe24bfbb04bbd9..f7b99159e3d869eda875ec13e9af751f00cab4d9 100644 (file)
@@ -85,6 +85,9 @@ add_library(${TARGET} STATIC
     unicode.h
     )
 
+target_include_directories(${TARGET} PUBLIC . ../vendor)
+target_compile_features   (${TARGET} PUBLIC cxx_std_17)
+
 if (BUILD_SHARED_LIBS)
     set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
 endif()
@@ -151,9 +154,7 @@ if (LLAMA_LLGUIDANCE)
     set(LLAMA_COMMON_EXTRA_LIBS ${LLAMA_COMMON_EXTRA_LIBS} llguidance ${LLGUIDANCE_PLATFORM_LIBS})
 endif ()
 
-target_include_directories(${TARGET} PUBLIC . ../vendor)
-target_compile_features   (${TARGET} PUBLIC cxx_std_17)
-target_link_libraries     (${TARGET} PRIVATE ${LLAMA_COMMON_EXTRA_LIBS} PUBLIC llama Threads::Threads)
+target_link_libraries(${TARGET} PRIVATE ${LLAMA_COMMON_EXTRA_LIBS} PUBLIC llama Threads::Threads)
 
 
 #