Fix check to know if dl library was found

This commit is contained in:
David Capello 2016-03-01 14:52:41 -03:00
parent a22039cd16
commit e887328624

View File

@ -93,7 +93,7 @@ if(WIN32)
target_link_libraries(base-lib dbghelp shlwapi)
else()
find_library(DL_LIBRARY NAMES dl)
if(DL_LIBRARY_FOUND)
if(DL_LIBRARY)
target_link_libraries(base-lib ${DL_LIBRARY})
endif()
endif()