cmake: use CMAKE_DL_LIBS instead of dl for portability
This commit is contained in:
parent
6a3cc63290
commit
e271363473
@ -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})
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user