From 8a23e4dd0c9015b74437cf423bdc52e275d0848a Mon Sep 17 00:00:00 2001 From: Chuck Cranor Date: Fri, 17 Jul 2020 20:32:37 -0400 Subject: [PATCH] add ${NL_LIBRARY_DIRS} to link_directories() Handles case where nl-route-3 and nl-3 libs are not installed in a standard location. pkg_check_modules() puts the location it got from pkgconfig in _LIBRARY_DIRS variable. Signed-off-by: Chuck Cranor --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ed0689afc..edab9b05f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -442,6 +442,7 @@ if (ENABLE_RESOLVE_NEIGH) # FIXME use of pkgconfig is discouraged pkg_check_modules(NL libnl-3.0 libnl-route-3.0 REQUIRED) include_directories(${NL_INCLUDE_DIRS}) + link_directories(${NL_LIBRARY_DIRS}) set(NL_KIND 3) else() set(NL_KIND 0)