Skip to content

Commit c4f5835

Browse files
committed
cont : fix build_info exports
1 parent 2365e14 commit c4f5835

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

common/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ set(TARGET build_info)
3939
add_library(${TARGET} OBJECT ${OUTPUT_FILE})
4040
if (BUILD_SHARED_LIBS)
4141
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
42+
set_target_properties(${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
4243
endif()
4344

4445
set(TARGET llama-common)
@@ -122,10 +123,8 @@ if (BUILD_SHARED_LIBS)
122123
set_target_properties(${TARGET} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
123124
endif()
124125

125-
target_link_libraries(${TARGET} PRIVATE
126-
build_info
127-
cpp-httplib
128-
)
126+
target_link_libraries(${TARGET} PUBLIC build_info)
127+
target_link_libraries(${TARGET} PRIVATE cpp-httplib)
129128

130129
if (LLAMA_LLGUIDANCE)
131130
include(ExternalProject)

0 commit comments

Comments
 (0)