You have to add setargv.obj as a link flag, not as a library.

Change-Id: Iab00c28b8fdb5649a115fb7f006ba176d4a4223e
Reviewed-on: https://code.wireshark.org/review/29986
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2018-10-02 14:06:21 -07:00
parent 97972ea9ff
commit 105f2d68d8
1 changed files with 1 additions and 2 deletions

View File

@ -2185,7 +2185,7 @@ endif()
# Common properties for CLI executables
macro(set_extra_executable_properties _executable _folder)
set_target_properties(${_executable} PROPERTIES
LINK_FLAGS "${WS_LINK_FLAGS}"
LINK_FLAGS "${WILDCARD_OBJ} ${WS_LINK_FLAGS}"
FOLDER ${_folder}
)
@ -2383,7 +2383,6 @@ endif()
if(BUILD_mergecap)
set(mergecap_LIBS
${WILDCARD_OBJ}
ui
wiretap
${ZLIB_LIBRARIES}