Skip to content

Commit f7ebafa

Browse files
committed
curl: Fix header conflict with zblue slist.h
Add BEFORE keyword to target_include_directories to ensure curl's slist.h takes precedence over zblue's slist.h, resolving compilation errors with Curl_slist_append_nodup function. bug: v/70561 Signed-off-by: v-yichenxi <v-yichenxi@xiaomi.com>
1 parent 66dd32a commit f7ebafa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if(CONFIG_LIB_CURL)
8787
curl)
8888
endif()
8989

90-
target_include_directories(curl PRIVATE ${CURL_INCDIR})
90+
target_include_directories(curl BEFORE PRIVATE ${CURL_INCDIR})
9191
target_compile_options(curl PRIVATE ${CURL_FLAGS})
9292
target_sources(curl PRIVATE ${CURL_SRCS})
9393

0 commit comments

Comments
 (0)