cmake: use CMAKE_DL_LIBS instead of dl for portability

This commit is contained in:
Anthony Tong 2011-10-25 09:47:38 -04:00
parent 6a3cc63290
commit e271363473
2 changed files with 2 additions and 2 deletions

View File

@ -93,6 +93,6 @@ target_link_libraries(xfreerdp freerdp-kbd)
target_link_libraries(xfreerdp freerdp-rail)
target_link_libraries(xfreerdp freerdp-channels)
target_link_libraries(xfreerdp freerdp-utils)
target_link_libraries(xfreerdp ${X11_LIBRARIES} dl)
target_link_libraries(xfreerdp ${X11_LIBRARIES} ${CMAKE_DL_LIBS})
install(TARGETS xfreerdp DESTINATION ${CMAKE_INSTALL_BINDIR})

View File

@ -23,4 +23,4 @@ add_executable(freerdp-test
target_link_libraries(freerdp-test freerdp-core)
target_link_libraries(freerdp-test freerdp-gdi)
target_link_libraries(freerdp-test freerdp-utils)
target_link_libraries(freerdp-test freerdp-channels dl)
target_link_libraries(freerdp-test freerdp-channels ${CMAKE_DL_LIBS})