Only try to link libdl on Unix platforms

This commit is contained in:
Robert Knight 2011-08-26 18:08:56 +01:00
parent 4459c96595
commit 38c9cd9b41

View file

@ -88,7 +88,7 @@ target_link_libraries(updatershared
) )
if (UNIX) if (UNIX)
target_link_libraries(updatershared pthread) target_link_libraries(updatershared pthread dl)
endif() endif()
if (WIN32) if (WIN32)
@ -106,7 +106,6 @@ endif()
target_link_libraries(updater target_link_libraries(updater
updatershared updatershared
dl
) )
install(TARGETS updater RUNTIME DESTINATION bin) install(TARGETS updater RUNTIME DESTINATION bin)