cmake: fix breakage with libnl2
I accidentally assumed that libnl2 works fine with just libnl.so, but apparently the other libraries are also necessary. Change-Id: I1636710ea3f41ed10a5ccb37106cae9e688abec9 Reviewed-on: https://code.wireshark.org/review/17654 Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
3c70e6d684
commit
e079862fad
|
@ -132,11 +132,7 @@ INCLUDE(FindPackageHandleStandardArgs)
|
|||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NL DEFAULT_MSG NL_LIBRARY NL_INCLUDE_DIR)
|
||||
|
||||
IF(NL_FOUND)
|
||||
if(HAVE_LIBNL3)
|
||||
set(NL_LIBRARIES ${NLGENL_LIBRARY} ${NLROUTE_LIBRARY} ${NL_LIBRARY})
|
||||
else()
|
||||
set(NL_LIBRARIES ${NL_LIBRARY})
|
||||
endif()
|
||||
set(NL_LIBRARIES ${NLGENL_LIBRARY} ${NLROUTE_LIBRARY} ${NL_LIBRARY})
|
||||
set(NL_INCLUDE_DIRS ${NL_INCLUDE_DIR})
|
||||
set(HAVE_LIBNL 1)
|
||||
else()
|
||||
|
|
Loading…
Reference in New Issue