wireshark/cmake
Peter Wu 7471b46768 cmake: fix libnl caching issue, make it more robust
Dario reported that the cmake build fails after installing libnl3-devel
(libnl-devel was already present). This results from a name collision
for NL_LIBRARY and NL_INCLUDE_DIR variables.

Initially these variables contained the values for libnl-1. When libnl3
is installed, these variables were not updated (because it was cached),
but HAVE_LIBNL3 would still be set, resulting in a header and feature
mismatch. Use separate variables for libnl1 and libnl3 to fix this.

Other fixes: also set HAVE_LIBNL for libnl1; fallback to libnl1 if
libnl3 is unusable (e.g. because libnl-route-3.0 is missing).

Change-Id: Icf0a03843ea870347ddf365f69bacf4883d07f6d
Reviewed-on: https://code.wireshark.org/review/17449
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2016-09-03 13:57:59 +00:00
..
modules cmake: fix libnl caching issue, make it more robust 2016-09-03 13:57:59 +00:00
TestFileOffsetBits.c cmake: Detect proper large file defines even with -Wno-error 2016-06-16 04:02:43 +00:00
TestLargeFiles.c.cmakein cmake: Detect proper large file defines even with -Wno-error 2016-06-16 04:02:43 +00:00
TestWindowsFSeek.c Remove all $Id$ from top of file 2014-03-04 14:27:33 +00:00