Skip to content

Commit a2ec01d

Browse files
authored
Use CMAKE_DL_LIBS
libdl is not present/required on all platforms. Use CMAKE_DL_LIBS to handle this gracefully.
1 parent 97b5aec commit a2ec01d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mscore/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ else (MINGW)
535535
${ALSA_LIB}
536536
${QT_LIBRARIES}
537537
z
538-
dl
538+
${CMAKE_DL_LIBS}
539539
pthread
540540
)
541541

@@ -584,7 +584,7 @@ else (MINGW)
584584
# 'gold' does not use indirect shared libraries for symbol resolution, Linux only
585585
if (NOT APPLE)
586586
if(USE_JACK)
587-
target_link_libraries(mscore dl)
587+
target_link_libraries(mscore ${CMAKE_DL_LIBS})
588588
endif(USE_JACK)
589589
target_link_libraries(mscore rt)
590590
endif (NOT APPLE)

0 commit comments

Comments
 (0)