Skip to content

Commit

Permalink
Use CMAKE_DL_LIBS
Browse files Browse the repository at this point in the history
libdl is not present/required on all platforms. Use CMAKE_DL_LIBS to handle this gracefully.
  • Loading branch information
AMDmi3 committed Aug 30, 2017
1 parent 97b5aec commit a2ec01d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ else (MINGW)
${ALSA_LIB}
${QT_LIBRARIES}
z
dl
${CMAKE_DL_LIBS}
pthread
)

Expand Down Expand Up @@ -584,7 +584,7 @@ else (MINGW)
# 'gold' does not use indirect shared libraries for symbol resolution, Linux only
if (NOT APPLE)
if(USE_JACK)
target_link_libraries(mscore dl)
target_link_libraries(mscore ${CMAKE_DL_LIBS})
endif(USE_JACK)
target_link_libraries(mscore rt)
endif (NOT APPLE)
Expand Down

0 comments on commit a2ec01d

Please sign in to comment.