Skip to content

Commit fe1067a

Browse files
committed
update binding/go/CMakeLists.txt
1 parent 95367ec commit fe1067a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

binding/go/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ foreach(ZLIB_LIBRARY IN LISTS ZLIB_LIBRARIES)
121121
get_filename_component(ZLIB_LIBRARY_DIR ${ZLIB_LIBRARY} DIRECTORY)
122122
list(APPEND CGO_LDFLAGS_LIST -L${ZLIB_LIBRARY_DIR} -lz)
123123
endforeach()
124+
list(REMOVE_DUPLICATES CGO_LDFLAGS_LIST)
124125
list(JOIN CGO_LDFLAGS_LIST " " CGO_LDFLAGS)
125126
message(STATUS "CGO_LDFLAGS: ${CGO_LDFLAGS}")
126127
file(APPEND ${COMPILER_OPTIONS_FILE_PATH}

0 commit comments

Comments
 (0)