Merge pull request #67 from tcberner/patch-1

Use CMAKE_DL_LIBS instead of dl
This commit is contained in:
Robin Mills 2017-09-13 12:43:57 +01:00 committed by GitHub
commit 7d0ea26ca6

View File

@ -239,9 +239,8 @@ if ( MSVC )
)
else()
# TODO: Check if this is really needed.
if ( UNIX AND NOT FREEBSD )
target_link_libraries( exiv2lib PRIVATE dl)
if ( UNIX )
target_link_libraries( exiv2lib PRIVATE ${CMAKE_DL_LIBS})
endif()
if (CYGWIN OR MINGW)