Skip to content

Commit

Permalink
add ${NL_LIBRARY_DIRS} to link_directories()
Browse files Browse the repository at this point in the history
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 <chuck@ece.cmu.edu>
  • Loading branch information
chuckcranor committed Jul 18, 2020
1 parent bed45e6 commit 8a23e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit 8a23e4d

Please sign in to comment.