Skip to content

Commit

Permalink
Android: avoid linking libnsl.so from host
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed May 12, 2019
1 parent dc677ac commit fc6ddbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ if (NOT TARGET dlib)
else () ##################################################################################
# link to the nsl library if it exists. this is something you need sometimes
find_library(nsllib nsl)
if (nsllib)
if (nsllib AND NOT ANDROID)
set (dlib_needed_libraries ${dlib_needed_libraries} ${nsllib})
endif ()

Expand Down

0 comments on commit fc6ddbd

Please sign in to comment.